Skip to content

snvlsai/Gold-mine-game-using-propositional-logic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Gold Mine Game

This repository contains implementations of Gold Mine games using Python and Tkinter.

Game Versions

  1. game.py - A classic Gold Mine game where players navigate through a grid to collect gold while avoiding traps. Features:

    • 5x5 grid
    • 4 gold pieces to collect
    • 4 traps to avoid
    • Warning indicators for nearby traps
    • Move counter
    • Player position tracking
  2. game1.py - An automated Gold Mine solver that finds the optimal path to collect maximum gold. Features:

    • Dynamic grid size (4-8 rows/columns)
    • Random gold values (1-9)
    • Dynamic programming algorithm
    • Visual path highlighting
    • Color-coded gold values
    • Reset functionality

How to Run

  1. Make sure you have Python installed with Tkinter support
  2. Run either game:
    python game.py
    
    or
    python game1.py
    

Controls

game.py

  • Click adjacent cells to move the player
  • Collect all gold while avoiding traps
  • Watch for warning indicators near traps

game1.py

  • Click "Start" to find the optimal path
  • Click "Reset" to generate a new random grid

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages