diff --git a/main.go b/main.go index e5277e4..c391513 100644 --- a/main.go +++ b/main.go @@ -79,6 +79,11 @@ func main() { return false }, + "total": 8787, + "aiWon": 232, + "aiWonPercent": "3.5%", + "draw": 6777, + "drawPercent": "94.4%", }) }) diff --git a/views/about.en.html b/views/about.en.html new file mode 100644 index 0000000..cd476dd --- /dev/null +++ b/views/about.en.html @@ -0,0 +1,25 @@ +
+ A small project to test pseudo AI on Tic Tac Toe. +
+ ++ Main idea was to train AI by playing game. AI has wining games datebase and select next click by selecting next step from already plaied game. In the last results AI should never lose. +
+ ++ Another idea was for myself to get some trainings on go programming language. +
+ ++ Project written on GPL3 license what you can get here. Project source are https://g.arns.lt/zordsdavini/tic-tac-toe. +
+ ++ I am Arns Udovič from Lithuania. You can follow me on fediverse at @zordsdavini@s.arns.lt +
+ + diff --git a/views/about.sgs.html b/views/about.sgs.html new file mode 100644 index 0000000..c32581e --- /dev/null +++ b/views/about.sgs.html @@ -0,0 +1,25 @@ ++ Mažos pruojektoks patestoutė pseudo DI so Krīžioku-Nulioku žaidėmo. +
+ ++ Pėrmuojė idiejė bova ėšmuokintė DI žaidont žaidėma. DI tor vėsus laimietus žaidėmus duombazie ė pajem sekonti ējėma ėš jau sožaistū žaidėmu. Galotėniam rezoltatė DI turietom nabpralaimietė. +
+ ++ Kėta idiejė bova pasėtrenėroutė mon patiam ont Go programavėma kalbuos. +
+ ++ Pruojekts parašīts ont GPL3 licenzėjės , katron galat gautė ėš če (onglėškā). Pruojekta kuods īr https://g.arns.lt/zordsdavini/tic-tac-toe. +
+ ++ Eso Udovič Arns. Galat monėm sektė fediversė @zordsdavini@s.arns.lt +
+ + diff --git a/views/index.html b/views/index.html index ad1ef62..0969148 100644 --- a/views/index.html +++ b/views/index.html @@ -40,17 +40,21 @@ {{define "content"}} -
+ Game: {{.gameFlow}}
+ Total plaied: {{.total}}
+ AI Won: {{.aiWon}} {{.aiWonPercent}}
+ Draw: {{.draw}} {{.drawPercent}}
+
+ Žaidėms: {{.gameFlow}}
+ Ėš vėsa žaidėmu: {{.total}}
+ Laimiejė DI: {{.aiWon}} {{.aiWonPercent}}
+ Līgiuoms: {{.draw}} {{.drawPercent}}
+