Coder Social home page Coder Social logo

vis-wa / november-2023-ibm-ponder-this Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 3 KB

A Pygame GUI to play the board game featured in IBM's Ponder This November 2023 Challenge.

Home Page: https://research.ibm.com/haifa/ponderthis/challenges/November2023.html

Python 100.00%
ibm-ponder-this ibm-ponder-this-challenge

november-2023-ibm-ponder-this's Introduction

November-2023-IBM-Ponder-This (15 Puzzle Game)

A Pygame GUI to play the board game featured in IBM's Ponder This November 2023 Challenge.

Controls

  • Use the arrow keys to move the selected block: Up, Down, Left, and Right.
  • Press 'r' to reset the game, which will set the blocks to their initial configuration.
  • Press 'u' to undo the last move.
  • Press 'p' to print the move history.
  • Press 'q' to quit the game window and end the script.

Features

  • The game features a 5x5 grid where blocks of different colors are placed.
  • Blocks can be moved in any direction as long as there is enough free space.
  • When a square within a block is selected, the entire block will be selected and move together.
  • The number of steps taken to solve the puzzle and the cost to move the blocks are displayed on the screen.
  • The game supports resetting the puzzle, undoing moves, and printing the move history.

Execution Steps

  1. Ensure you have Python installed on your system.

  2. Install the Pygame library by running the command:

    pip install pygame
    
  3. Download the 'script.py' file and place it in your desired directory.

  4. Open a terminal or command prompt and navigate to the directory where the 'script.py' file is located.

  5. Run the game by executing the following command:

    python script.py
    

The game window will appear, and you can start playing by following the on-screen instructions and using the controls described above.

november-2023-ibm-ponder-this's People

Contributors

vis-wa avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.