A respository with webpages that show people different types of ai.
Both webpages were made using Vite + React with JS.
Tic Tac Toe was used to show off this type of ai.
Currently, this webpage has a Tic Tac Toe board in the middle, along with smaller ones on the sides that show each move that can be made and their asigned Q-values from the model.
- Allowing the user to play O
- Allowing the user to change the hyperparameters of the model
- Training the model async so the page doesn't take forever to load
- User can make a move for the model by clicking a button when its not their turn
- When the page highlights the best move sometimes the model won't pick it because of the way boards are stored in the Q-table. Need to update the page to also use canonical form of boards to fix tihs.
Snake was used to show off this type of ai.
Currently, this webpage has 10 snake boards on the left which show the 10 best performing snakes from the most recently trained generation. Once they all lose, again the most recently trained generation is fetched to be displayed. Model training happens in the background to prevent slowdowns and allow for display snakes. On the right there is a panel of buttons which list the types of parameters that can be given to the input vector x. The value next to the name is the number of values added to the vector if that input is enabled. An example being the snake head position giving 2 values for the x and y.
- Allowing the user to change the hyperparameters of the model. This is including things like mutation rate, elitism count, or the layer structure of the NN.
- No known bugs at this point