AlanMet / TicTacToe

0 stars 0 forks source link

tictactoe2

tictactoe

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Issue

To reproduce issues with the neural network.

  1. Run the program on web
  2. select VS AI
  3. The output begins in initialisation where the weights are displayed The output is also displayed on the web console when pressing f12
  4. Once a move is made the program runs forward propagation using the state of the board as an input to make a prediction.
  5. Then the player move is used to perform backpropagation and update the weights and biases.
  6. the neural network then makes a new move by running forward propagation.
  7. it displays its output to the console.
  8. If you want more details on the weights, adding weights[i].display(); in the backwardsPass loop will display it on the screen.

Previously when I ran the program, all of the weights would converge to the same number. I updated the backpropagation to function correctly. Now it seems to be modifying the weights in a specific direction little by little. However the result is always the same.