Mattéo Pozzo di Borgo
Microengineering — between electronics, embedded systems and fabrication.
← Project timeline
HEPIA project

"Qui de nous ?" — Local network party game

A multiplayer party game in Python/Kivy, on PC and Android: one player hosts the game, the others join on the same Wi-Fi.

Period
Mar. – May 2026
Context
2nd year HEPIA (MT2) — AMC course (Mobile Apps and Sensors)
Team
Pair project
Role
Interface, Android deployment, tablet testing
Status
Completed
PythonKivyAndroidBuildozerTCPAccelerometerGit
Game logo: a glowing question mark and the letters QDN

Key points

  • Multiplayer party game over the local network: each player joins from their own device
  • One player hosts the game, the others join with its IP address on the same Wi-Fi
  • Client/server communication over TCP (Python sockets) on the local network
  • The game starts when the host shakes their device, detected by the accelerometer
  • Graphical interface built with the Kivy framework, Android app compiled with Buildozer

Context

This project was done in pairs for the AMC course (Mobile Apps and Sensors), in 2nd year at HEPIA. The main requirement was to build a working network application with a graphical interface.

Rules of the game

Each round, a chosen player completes the sentence "Which of us…" (for example "…is the most touchy?") and secretly picks the person they have in mind. The other players vote for who they think the answer is: each correct vote earns 1 point. After 5 rounds, the player with the most points wins.

Network architecture

The game uses a client/server architecture on the local network. One node runs the server (game state, synchronisation) and the other players connect to it as TCP clients, joining the host's game.

Diagram: the flow through the game's six screens, then the host and its threads linked to the players over TCP, with the list of messages exchanged

Interface and accelerometer

The interface was built with Kivy, a Python framework for touch interfaces. The accelerometer is used to start the game: in the waiting room, the host shakes their device. The sensor is read every 50 ms, and a shake is detected when |Δx| + |Δy| + |Δz| exceeds 14.5.

My part: the interface and Android deployment

  • Interface design: dark theme, colours, buttons and layouts for the six screens
  • Building the Android app (APK) with Buildozer, on a virtual machine controlled over SSH
  • Fixing an Android bug: "[Errno 1] Operation not permitted" on connecting, because the automatic permission detection did not spot the socket use; the INTERNET permission was added explicitly
  • Testing and debugging on an Android tablet and on PC, screenshots and final presentation

My teammate handled the network architecture, the game logic and the shake detection.

Difficulties

  • HEPIA's Wi-Fi isolates devices from each other (AP isolation): players could not connect to one another, so we used a mobile hotspot
  • Kivy's font does not display emojis
  • A fixed layout, poorly suited to different screen sizes
  • The virtual players (bots) could not be made to work

Possible improvements

  • Automatic reconnection after a disconnect
  • Backup start button for devices without an accelerometer
  • A timer for voting