Skip to content

ideaMarcos/tictactemoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tictactemoji

To start your Phoenix server:

  • Run mix setup to install and setup dependencies
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

tictactemoji.mp4

Tech Notes

  • Wanted to learn more about https://github.com/elixir-nx
  • Used variation of tic tac toe where only last 3 moves are kept
  • Created neural network with Axon. Uses supervised learning.
  • Meant to run locally. Not deploying this anywhere.
  • The training data included is not explained. Maybe later. It's a lot to write.
  • The grid is represented as a list from 0-8
0 | 1 | 2
3 | 4 | 5
6 | 7 | 8
  • Each potential move is scored. The output on the console looks like:
PREDICTION: [
  {0.9915338158607483, 3},
  {0.003853111295029521, 6},
  {0.001458177575841546, 5},
  {9.841511491686106e-4, 2},
  {9.607021347619593e-4, 7},
  {9.043502504937351e-4, 8},
  {2.5609220028854907e-4, 4},
  {2.5914539946825244e-5, 1},
  {2.355606557102874e-5, 0}

Helpful resources

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published