Git Product home page Git Product logo

simon-says's Introduction

Simon-Says

Simon-Says is a Python-based implementation of the classic memory game. The game uses the Pygame library to create a graphical user interface where players can interact with the game.

Game Description

In Simon-Says, players are presented with four colored buttons: green, red, blue, and yellow. The game will illuminate one of these buttons in a random sequence, and the player must repeat this sequence by clicking the buttons in the correct order. If the player succeeds, the sequence becomes progressively longer and faster. If the player makes a mistake, the game ends.

Installation

To run Simon-Says, you need to have Python and Pygame installed on your machine. If you don't have Python installed, you can download it from the official website: https://www.python.org/downloads/

To install Pygame, you can use pip:

pip install pygame

Running the Game

To start the game, navigate to the directory containing the game files and run the main.py script:

python main.py

Game Files

The game consists of two main files:

  • main.py: This is the main script that runs the game. It handles the game loop, user input, and game logic.

  • button.py: This script defines the Button class, which is used to create the colored buttons in the game. Each button has properties such as its color, sound, and position on the screen.

Sounds

The game uses four different sounds, one for each button. These sounds are stored as .mp3 files in the same directory as the game scripts. The sounds are played when the corresponding button is illuminated.

simon-says's People

Contributors

jackyzzzz 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.