Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guess Who? - Scala Console Game 🎭

Overview

"Guess Who?" is a Scala-based console game where players try to identify a secret character by asking yes/no questions about their attributes, such as glasses, hair color, and gender. The game continues until the player correctly guesses the character or chooses to exit.

Features

✅ Interactive console-based gameplay
✅ Ask questions about character attributes
✅ Make a direct guess about the character's name
✅ Colorful terminal UI for a better user experience
✅ Scalable design, allowing for future multiplayer expansion

How to Play

1️⃣ Run the game in your terminal.
2️⃣ Ask questions to narrow down the possible characters.
3️⃣ Make a final guess when you're ready!
4️⃣ Win by correctly identifying the secret character.

Installation & Running the Game

Prerequisites

  • Ensure you have Scala 2 or later installed on your system.
  • A terminal or command prompt to run the program.

Steps to Run the Game

Navigate to Your Desired Directory

Open a terminal and navigate to the directory where you want to clone the project:
cd /your/desired/path/

Clone the Repository

git clone git@github.com:waris1hezb/GuesswhoGame.git cd GuesswhoGame

Complie and Run the Game

scalac Main.scala GameLogic.scala Character.scala QuestionFilter.scala GameData.scala AsciiArt.scala

scala Main

About

Refactoring Group Group 2's Guess Who

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages