Skip to content

alenas/test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battlefield test

I had a task of creating a battlefield, where cowboys enter a pub and start shooting randomly at each other.

Requirements:

  • List of fighters are given in a json format: {'name': 'John', 'health': 10, 'damage': 1}
  • All fighters shoot at the same time at a random target and then take time to reload a gun.
  • Print to console battle events and the last man standing.

About

Battlefield test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages