How batuhancakmak4/nqueens-game works
This is a small interactive N-Queens desktop game: the player clicks squares, the application applies move rules, and the board and status panel reflect the resulting game state. Easy Mode highlights attacked squares; Hard Mode hides those hints. The GUI and game logic are implemented in the two core C++ files, while the original C console game remains a separate historical implementation. Relationships are based on the shown source and README; the original implementation is not shown as part of the GUI runtime.
Main entry points: game_logic.hpp Game state and rules · main.cpp Game controller · nQueen_original.c Console implementation
Components 6
Graphical interface
- Game controller
main.cpp - Board display
main.cpp - Controls and status
main.cpp
Game rules
- Game state and rules
game_logic.hpp
Original console game
- Console implementation
nQueen_original.c
Other components
- Player
Connections 5
- Player → Game controller: clicks
README.md - Game controller → Game state and rules: updates and queries
main.cpp - Game state and rules → Board display: provides board state
main.cpp - Game state and rules → Controls and status: provides game status
main.cpp - Console implementation → Game state and rules: logic adapted from
README.md