https://github.com/abdnh/chex-game
The hex board game in C
https://github.com/abdnh/chex-game
c game hex-game
Last synced: 2 months ago
JSON representation
The hex board game in C
- Host: GitHub
- URL: https://github.com/abdnh/chex-game
- Owner: abdnh
- License: unlicense
- Created: 2019-12-12T16:27:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-09T18:48:58.000Z (over 3 years ago)
- Last Synced: 2025-01-24T07:29:51.249Z (4 months ago)
- Topics: c, game, hex-game
- Language: C
- Homepage:
- Size: 106 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chex-game
chex-game ("[the hex board game](https://en.wikipedia.org/wiki/Hex_(board_game)) written in C" or "crude hex game" depending on whom you ask) is my first relatively successful attempt at making a playable video game. I wrote it specifically to use the [union-find data structure](https://en.wikipedia.org/wiki/Disjoint-set_data_structure) as an exercise in applying data structures.Note that this is not a hex engine (it does not include AI opponents).
## TODO
* swap rule?
* tidy up the code
* etc.## Credit
* A huge thanks to the author of this [elegantly written guide](https://www.redblobgames.com/grids/hexagons/) about hexagonal grids
* Font is taken from https://www.dafont.com/vcr-osd-mono.font
* The [Allegro](https://liballeg.org/) game programming library
* This [coursera course](https://www.coursera.org/learn/algorithms-part1/) about algorithms and data structures## Screenshots

