2d turn-based game using JavaScript
- Getting comfortable using JavaScript
- Designing algorithm for Tic-Tac-Toe that facilitates dynamic board
- Build project workflow
- Recognized personal uncomfort when facing JavaScript, I forced myself to a project primarily using it.
- Concepts used in the project:
- Canvas
- Template creating for symbols
- Event handler: mouseClick
- Elements' visibility
- My current new goal is to focus on React library for user interface
(also see 'Goal 3. Workflow' for more reasons to focus on React).
-
MiniMax algorithm
-
Genetic algorithm:
- Time complexity grows significantly when increase number of dimensions and edge length
- The algorithm takes significantly more cycles to reach a conlusion when the board grows past 4 dimensions
- Descendent algorithms cannot accumulate enough wins to replace ancestor algorithms
-
With the goal of making the game playable on board dynamic in both size and dimension,
and keeping the project managable at the time, I designed an algorithm based on a survey for a strategy
of a nominal human player.