Skip to content

JCCourt/Virus-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Mobile Phone Virus Simulation

A Java-based mobile phone virus simulation using Swing and Multithreading. Phones move randomly on the screen and an infection spreads when an infected phone gets close to a healthy phone. The repair shop helps infected phones recover.

This was a 2nd-year university project I made, focusing on DSA tecnhniques.

πŸ“Œ Features

  • Phones move randomly on the screen.
  • Infection spreads if a healthy phone is near an infected phone (note proximity is base on black dot and is a very near distance for infection).
  • A repair shop heals infected phones.
  • Multithreaded simulation to handle phone movement independently.
  • Synchronization techniques to prevent race conditions.

πŸ“± Usage

  • Controls:
    • ⬆️ β†’ Add a new phone.
    • V β†’ Infect a random phone.

About

Simple Virus Simulator using threads

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages