An awesome classic game Tic Tac Toe, now right from your game!
it's unique design in HTML DOM to manipulate and best of all,
you as developer can design your own look and effect!
How it works is easy to setup and even powerful enough on how.
htmlTTT.open();
Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž
This opens the a mini setup to start the game you want to do:
player vs player or player vs computer.
If Player vs Player => game start so each turn, the player
set an X or O.
If Player vs Computer => you can choose game mode:
Easy, Normal, Hard, Extreme.
htmlTTT.open({com:false});
Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž
This start Player vs Player directly
htmlTTT.open({com:true});
Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž
This gives you the game mode: Easy, Normal, Hard, Extreme.
htmlTTT.open({com:true, mode: "easy"});
Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž
This start Player vs Computer in easy mode directly.
After the game, you can either reset or close it
htmlTTT.open({com:true, mode: "hard",
lose: `$gameMessage.add("You have lost the game.")`});
Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž
This start Player vs Computer in hard mode, and if lost, it execute
a JavaScript Code like Game Message, Switches, Variables, etc.
this code MUST be into strings to be executed.
win: execute code on winning (can be omitted)
lose: execute code on lose (can be omitted)
draw: execute code on draw (can be omitted)
Omitting those settings, show the buttons, otherwise, it close the
game if actions are set.
Player vs Computer
Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž
Easy: Computer set random move and isn't smart
Normal: Computer is smarter, and block your path of winning.
Hard: Computer is far smarter and try to win if able.
Extreme: Computer is really smart and block each path and think ahead!