top of page

Con-tac-tix with Recursive Winner-checker

Solo University Assignment | Unity

‘Hex’, or ‘Con-tac-tix’ is a strategy board game where two players attempt to connect opposite edges of an hexagonal board.

Board.png

01

Tile Property

For each tile on the board

Picture12.png

Spawn Tiles at Runtime

1699382600052.png

02

Winner Checker

The recursive helper function iterates each tile through the game board to check if any player connects two opposite sides of the board with coloured tile

Picture13.png
Picture14.png
Picture15.png

04

Possible Improvements

Codes can be cleaner. A line of codes shouldn't be too long. Split them into different lines for a cleaner view.

Picture14.png
bottom of page