这是indexloc提供的服务,不要输入任何密码
Skip to content

yhsung/monopoly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monopoly

This is a web-based, multiplayer Monopoly game with a modern and clean user interface. It is built with HTML, CSS, and JavaScript, and uses Tailwind CSS for styling and Tone.js for audio.

Features

  • Multiplayer Gameplay: Play with up to 6 players on the same computer.
  • Interactive Game Board: A visually appealing and interactive game board with all the classic Monopoly spaces.
  • Player Management: Keep track of each player's cash, properties, and status.
  • Property Management: Buy, sell, mortgage, and build houses and hotels on your properties.
  • Chance and Community Chest Cards: Draw cards with various outcomes that can help or hinder your progress.
  • Game Log: A log that displays all the events of the game.
  • Save and Load Games: Save your game progress and load it later.
  • Sound Effects: Audio feedback for various game events.
  • AI-Powered Taunts: A fun feature that uses the Gemini API to generate trash talk.
  • AI-Powered Nicknames: Generate creative nicknames for your properties using the Gemini API.
  • Game Tour: A guided tour for new players to learn the basics of the game.

How to Play

  1. Open the index.html file in your web browser.
  2. From the main menu, you can:
    • Start a New Game.
    • Load a Game that you have previously saved.
    • Adjust the Options.
    • Take a Game Tour to learn the basics.
  3. If you start a new game, you will be prompted to select the number of players.
  4. The game will then start, and the first player's turn will begin.
  5. On your turn, you can:
    • Roll the dice to move your token around the board.
    • Buy properties that you land on.
    • Pay rent to other players if you land on their properties.
    • Draw a Chance or Community Chest card if you land on the corresponding space.
    • Manage your properties by building houses and hotels, or by mortgaging them.
  6. The game ends when all but one player have gone bankrupt. The last player remaining is the winner.

Technologies Used

  • HTML: The structure of the game.
  • CSS: The styling of the game, with the help of Tailwind CSS.
  • JavaScript: The game logic and interactivity.
  • Tone.js: The audio engine for the sound effects.
  • Gemini API: Used for the AI-powered taunts and nicknames.

About

multiplayer monopoloy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages