Giter VIP home page Giter VIP logo

monopoly-game's Introduction

Monopoly Game in C with Terminal GUI

This C program is a text-based implementation of the classic Monopoly board game with a graphical user interface (GUI) rendered in the terminal. It simulates the gameplay of Monopoly, allowing up to four players to participate and follow standard Monopoly rules.

Features

  • Text-Based GUI: The game provides a text-based graphical user interface (GUI) that renders the Monopoly board and displays player information in the terminal.
  • Up to Four Players: You can play the game with up to four players, each represented by the first letter of the name entered.
  • Standard Monopoly Rules: The game follows the traditional Monopoly rules, including property acquisition, rent payment, card drawing, and trading.
  • Property Management: Players can buy properties, build houses/hotels, and mortgage properties based on their financial status.
  • Chance and Community Chest Cards: The game includes Chance and Community Chest card decks, and players draw cards with various effects.
  • Jail: Players can land in jail, attempt to get out of jail, or pay to leave jail.
  • Winning Conditions: The game continues until only one player remains solvent, and they are declared the winner.

Steps to run the application

  • Make sure you have gcc compiler up and running
  • Compile the Program: Compile the C program using a C compiler (e.g., gcc)
    gcc -o main main.c
  • Make sure you have terminal on FULLSCREEN, or else the display will be messy
  • Run the Game: To run the game, ensure you are running the main.exe file with the terminal on fullscreen mode, with no zoom i.e, the default settings of terminal
    main.exe
  • After running main.exe, you will be greeted with a monopoly ascii art, use your trackpad to zoom out till the logo is in the center of the screen
  • Then just follow the on screen instructions to start the game. Enjoy!

Usage

  • Gameplay: Follow the on-screen instructions to play the game. Input your choices using keyboard inputs (e.g., 'r' for rolling the dice, 'b' for buying property, etc.).
  • Player Turns: Players take turns rolling dice, moving on the board, and performing actions such as buying properties, paying rent, or drawing cards.
  • Winning: The game continues until a player has aquired all the properties or if the player is the only person standing who is not bankrupt

Dependencies

This Monopoly game in C relies on standard C libraries for input/output and terminal manipulation. No external libraries or packages are required.

Acknowledgments

This game is inspired by the classic Monopoly board game by Hasbro. Credits go to the original game designers for creating this iconic game.

License

This project is open-source and available under the MIT License. You are free to use, modify, and distribute the code as per the license terms.

Author

Varun Kamath

Enjoy playing Monopoly with your friends in the terminal!

monopoly-game's People

Contributors

vaarun-kamath avatar shiva4113 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.