Click to place your tile, make sure you have an enemy tile in between your 2 tiles otherwise you won't be able to place! The winner is the one with more tiles than their opponent by the time the entire board is filled! Don't worry there is a win state coded.
This one took me about 10 hours to fully code and figure out. Hope you enjoy... A noted bug: If you click during the refresh of the board it will break the game. Also, I only learnt that black is supposed to go first after completing the project, sorry! It's a slight inaccuracy from the real board game. The only thing not added to this project is: If a player has no legal moves it doesn't switch player to the other player. This could be achieved but I didn't want to make this project even longer than it already is.