Skip to content

Yuvakunaal/Multi-Game-Console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Multi-Game Console - Python Project ๐ŸŽฎ

Overview

This Python program implements a console-based multi-game platform featuring three classic games:

  1. Rock, Paper & Scissors (Player vs Computer) ๐Ÿชจ ๐Ÿ“„ โœ‚๏ธ
  2. Snakes & Ladders (2 Players) ๐Ÿ ๐ŸŽฒ
  3. Tic-Tac-Toe (2 Players) โญ• โŒ

The application demonstrates strong programming fundamentals including:

  • Modular design with a main game selector ๐Ÿ› ๏ธ
  • User input validation โœ…
  • Game state management ๐Ÿ“Š
  • Score tracking and statistics ๐Ÿ“ˆ
  • Clean user interface with ASCII art ๐Ÿ–ผ๏ธ

Code Structure

Main Components

  1. game() function - Core function that handles all game logic based on user selection
  2. Game Menu System - Interactive menu for game selection and continuation
  3. Individual Game Implementations - Three fully-featured games with rules display

Game Details

1. Rock, Paper & Scissors

  • Features:
    • Best-of-n rounds against computer
    • Input validation
    • Score tracking
    • Clear win/loss rules display
  • Technical Highlights:
    • Random computer choice generation
    • Comprehensive win condition checking
    • Clean score display formatting

2. Snakes & Ladders

  • Features:
    • Two-player implementation
    • Custom player names
    • Visual dice roll display (๐ŸŽฒ)
    • Snake and ladder position tracking
    • Exact finish requirement (must land exactly on 100)
  • Technical Highlights:
    • Position mapping for snakes/ladders
    • Turn-based gameplay with quit option
    • Score normalization for overshooting

3. Tic-Tac-Toe

  • Features:
    • Alphabetical position reference (a-i)
    • Input validation and position checking
    • Real-time board display
    • Win/draw detection
    • Comprehensive statistics tracking
  • Technical Highlights:
    • 2D array board representation
    • Position mapping system
    • Eight possible win condition checks
    • Move history tracking

Technical Strengths

  1. Robust Input Handling:

    • Type checking
    • Range validation
    • Position availability checking (Tic-Tac-Toe)
    • Case-insensitive inputs
  2. State Management:

    • Score tracking across multiple rounds
    • Game statistics (wins/losses/draws)
    • Board state preservation
  3. User Experience:

    • Clear rules display for each game
    • Visual separation of game elements
    • Helpful error messages
    • Option to continue or quit after each round
  4. Code Organization:

    • Single entry point with game selection
    • Logical flow within each game
    • Consistent formatting

About

๐ŸŽฎ A Python-based console app featuring Rock, Paper & Scissors, Snakes & Ladders, and Tic-Tac-Toe. ๐Ÿ› ๏ธ Modular design, user-friendly UI, and robust input handling. ๐Ÿ“Š Tracks scores, stats, and provides clean ASCII visuals. ๐Ÿš€ Perfect for showcasing core Python skills and game logic!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages