Skip to content

ovitus/hexxagon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexxagōn

A Hexxagōn clone written in Haskell. History of the game can be found on the Ataxx Wikipedia page.


There are two executables, hexxagon and hexxBoardConfig.

Launching hexxagon will show the default board.

hexxagon0

Red is always first, press enter to show the available pieces that can be moved.

hexxagon1

Entering coordinates for a piece will show its moveset.

hexxagon2

Choosing an adjacent space will clone the piece into that hexagon.

hexxagon3

Blue's turn next.

hexxagon4

Choosing a space further away will cause the peice to hop to that hexagon.

As you can see, any opponent peices in direct proximity will convert.

hexxagon5

The objective of the game is to either eliminate the opponent's pieces or have the most hexxagons filled on the board.


hexBoardConfig allows for custom board creations.

hexxBoardConfig0

Use the coordinates to specify hexagons to delete or change them to red, blue or empty spaces.

hexxBoardConfig1

When finished, save the layout to a file.

hexxBoardConfig2

This can then be loaded into the main game.

hexxBoardConfig3

Red wins here since there's no contest.

hexxBoardConfig4

At any time and in either mode the players can "load", "save" or "quit". Shortcuts to these commands are also available with the initials (example: 'l', 's' or 'q').

Possible todos:

  • Random board configurations
  • Network play
  • AI opponent

Special thanks to Mazen Khaddaj who collaborated with me, helping improve the design of my original rough draft and providing the Instances and UtilityFxs modules. He will be bringing this to the next level as part of a project for the Cardano blockchain, with the idea being to play the game over the blockchain to allow competitive wagers.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published