skip to content

Search

Pimp My House – School Project

2 min read

A Python game where players compete to design the best rental house, inspired by TV shows like Pimp My Ride. Features a custom Arduino Mega buzzer system for interactive gameplay.

Small video game about Eco-design – School Project

This project is a Python game inspired by the TV show Pimp My Ride, but for architects! Players compete to design the best rental house for a new housing company.

We implemented a custom buzzer system using an Arduino Mega to make the gameplay more interactive.

Here the link of the Github Repo Game Screenshot


Gameplay Overview

  • Players: 2 to 4
  • Objective: Build the highest-scoring house by selecting the best components within a time limit.
  • Theme: Players are architects in a TV-style competition, racing to design the most attractive house.

Players compete in real-time to select high-quality house components before others can claim them. Each component has stats that affect the overall score.

Gameplay Example

Game Components & Scoring

1. Structure

  • Stats: Price | Durability | Eco-friendly | Isolation
Structure

2. Interior System

  • Stats: Price | Durability | Eco-friendly | Energy Consumption
Interior System

3. Kitchen

  • Stats: Price | Durability | Eco-friendly
Kitchen

4. Bathroom

  • Stats: Price | Durability | Eco-friendly
Bathroom

5. Laundry Room

  • Stats: Price | Durability | Eco-friendly
Laundry Room

6. Living Room

  • Stats: Price | Durability | Eco-friendly
Living Room

7. Master Bedroom

  • Stats: Price | Durability | Eco-friendly
Master Bedroom

8. Children Bedroom

  • Stats: None (just for fun!)
Children Bedroom

Each stat has a coefficient, which influences the final score. The winner is the player with the highest total score.

StatCoefficient
Price1.75
Energy Consumption1.5
Durability1.75
Eco-friendly2
Isolation1.5

Buzzer System (Arduino Mega)

For presentations, we used an Arduino Mega to create a buzzer system. Each button acts like a keyboard key so that it can interact with the Python game.

Example key mapping in the code:

pygame.K_q: "Player 1"  # Button 1
pygame.K_w: "Player 2"  # Button 2
pygame.K_e: "Player 3"  # Button 3
pygame.K_r: "Player 4"  # Button 4

To make the Arduino behave like a keyboard, we turned it into a USB HID device.
Here’s a detailed guide on how I did it.


Installation

  1. Install the required Python packages:
pip install -r requirements.txt
  1. Run the game:
python game2.py  # For 2 players
# Or
python game4.py  # For 4 players

Notes

  • Display management in Pygame was a bit tricky, but we managed to make it work.

  • A lot of work went into this project, but we are very happy with the results.

  • We received excellent grades for this project!