Undercover Game is a mobile application developed in Android Studio using Jetpack Compose. This is a digital adaptation of the Undercover board game, where players receive roles and similar words, and their goal is to identify opponents without exposing their own identity.
Description: Allows the user to choose the number of players and whether they want to include 18+ words (not yet implemented).
Description: Each player can enter their name, and users can add or remove players.
Description: Sets the number of Undercover and Mr. White, while the rest will be Civilians.
Description: Each player sees a pop-up with their name and has the option to press "Reveal Word" to see their assigned word.
Description: Players eliminate others in turns, and if Mr. White is eliminated, they must guess the civilians' word.
✅ Modern interface using Jetpack Compose ✅ Navigation between screens with Jetpack Navigation ✅ Predefined word set based on a CSV file ✅ Automatic role distribution based on the number of players ✅ Ability to eliminate players and display their roles after elimination ✅ Mechanism for Mr. White to guess the word ✅ The 18+ word option is not yet implemented
MainScreen.kt
- Main screen for game setupPlayerSelectionScreen.kt
- Player selection and name inputRoleConfigurationScreen.kt
- Configuration of Undercover and Mr. White countRoleAssignmentScreen.kt
- Role assignment and word displayGameScreen.kt
- Game management and player eliminationWordGenerator.kt
- Class responsible for generating word pairsPlayer.kt
- Data model for a playerNavGraph.kt
- Navigation configuration between screens
- Clone this repository:
git clone https://github.com/omacelaru/Undercover_Android_Game
- Open the project in Android Studio
- Run the app on an emulator or a real device
🔹 Adding more word sets for variety 🔹 Optimizing the interface for a smoother experience
If you have suggestions or questions, feel free to open an issue on GitHub.
🎮 Have fun playing Undercover!