Skip to content

zestypanda/Games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Games

Implemented Command Line Based Games in C++ (MineSweeper and Snake game)

Designed an AI minesweeper solver (well handle intermediate level)

In Minesweeper game, two 2D vectors are used to hold game board and state. In constructor, mine positions in the game board are initialized by random number generator, other grids are filled with the count of surrounding mines. It has member functions of click, mark and unmark when a coordinate is given.

The AI minesweeper solver is implemented using BFS, which compares the value of each grid with the count of marked mines and unrevealed grids surrounding it. If no process after a certain amount of iteration (double board size), click a new grid.

About

Console Games (MineSweeper and Snake game) in C++ with AI minesweeper solver

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages