Package: gym-covid19outbreak
gym-covid19outbreakcovid19outbreak pays tribute to all researchers in African pharmacopoeia, epidemiologists, doctors, nurses, etc. who have fought valiantly against Sars-Cov IITable of ContentsGame-presentationIntroductionObject of the gameGameplayRulesStarting-positionsmovesEnvironmentsEpisode terminationObservationsActionsRewardInstallationUsageCitationContributeGame-presentationhttps://en.wikipedia.org/wiki/Covid19_pandemicIntroductionIt was on March 11, 2020 that the World Health Organisation (WHO) declared the coronavirus pandemic. During this same period, Italy was the main focus and then the USA took the place. In March 17, 2020 many countries in Africa was closed borders and banning flights from elsewhere.Covid19outbreakis a single-player simulator strategy board game. Player start with 10 lifes and priority is to save all patients.Object of the gameBy looking for the way to save patient, player must avoid Sars-Cov II and keep its life. If he save all patients player wins otherwise the game begins very difficult.GameplayDuring the game, player must be stratege by finding a plant and avoiding Sars-CovII in their way. If player touches viruse and have a plant, he kill viruse. If player touches viruse without a plant, he looses some percentage of life and he contaminates environment. Patient is  unstable due to collision with viruses.RuleStarting-positionsPlayer starts in bottom of screen with 5 virus, 7 patients and 5 plants.MovesPlayers can move following theses directions:Up, Left, Right, DownLeftTop, RightTop,  LeftBottom, RightBottom, NOOPEnvironmentObservationThe observation is a numpy arrays of size (480, 520, 3). This arrays is a dtype=np.uint8 value in the [0, 255] range. You can see image below.gym-covid19outbreakActionsThe moves is the 8 directions mentioned before. Player can go everywhere in the screen to reach his objective.agent can move Up, Left, Right, Down, LeftTop, RightTop,  LeftBottom, RightBottom in the screen.RewardPlayer have four rewards:If boy hits a plant:reward = 1 + number of plant collected + 0.01during an episode.If boy saves a patient:reward = 1 + number of patient savedduring an episode.If boy hits Sars-Cov II with a plant:reward = number of plant + 0.01 - 2, 0.01 is a decay life.If boy hits Sars-Cov II without having a plant:reward = - 3 - 0.01.In beginning of game, player have 10 lifes by hitting the viruse without a plant, life = life - 1.Do not forget that player can contaminate environment by creating two viruses each time after infection.Episode terminationThe episode is terminated if agent looses all its life or saves all patients or kills all viruses.Requirementpython 3.7+OpenAI gymNumpyPygamePILKeras or Tensorflow or PytorchDependencies can be installed withpiporcondaUsing pip$ git clone https://github.com/batalong123/gym-covid19outbreak.git
$ cd gym-covid19outbreak
$ pip install -e .orpip install gym-covid19outbreakUsageimportgymimportgym_covid19outbreakenv=gym.make('covid19Attack-v0')MAX_EPISODE=10foriinrange(MAX_EPISODE):env.reset()done=Falsetotal_reward=0whilenotdone:action=env.action_space.sample()obs,reward,done,info=env.step(action)total_reward+=rewardenv.render()print(f'Episode:{i+1}/{MAX_EPISODE}',f'reward:{total_reward}',f'done:{done}')env.close()CitationBibtex if you want to cite this repository in your publications:@misc{gym_covid19outbreak,
  author = {Massock Batalong M.B.},
  title = {Covid19outbreak Environments for OpenAI Gym},
  year = {2022},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/batalong123/gym-covid19outbreak}},
}ContributeFeel free to contribute to this project. You can fork this repository and implement whatever you want. Alternatively, open a new issue in case you need help or want to have a feature added.contact:lumierebatalong@gmail.com