This small javascript software is intended to bring the famous Ati game to the computer. Ati is a traditional game in Togo and other parts of West Africa and which rules are almost the same as the Western Morpion game.
The code is deployed here: https://ati-ipb1.onrender.com. Please have fun!
Once the page is loaded, each player can start placing their own units. When the red ball is spinning, it is the red player's turn to place his unit and vice versa. To place one's unit, you just need to click on the intersection points or corners of the white squares on the board. Each player has ten units which they place on the board à tour de rôle. Once all units are placed on the board the player which ball is spinning can touch one of her units and then click on a free position (intersections or corners of the white squares on the board). Once three players of the same team are aligned the team has to click on a unit of the adversary in order to make it disappear.
The game is over when one team has less than three unit (just like in a standard Morpion game).
- AtiGame/public_html/assets/js/GameLib.js: This is the file containing most of the game logic
- AtiGame/public_html/assets/js/Game.js: This file is just the facade. It makes use of the objects declared in ./GameLib.js. It is the file which contains the onLoad() method that the index.html wil call