Cyuhaohao / CapstoneProject

My Capstone project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction Video and Gameplay Introduction

Watch Video

Go to the YouTube Link: https://youtu.be/UstsXwr34ws.

Play the Game

  1. install python3 in your computer;
  2. open the command line of your computer, use git clone https://github.com/Cyuhaohao/CapstoneProject.git to clone the code to your local;
  3. use command cd CapstoneProject to enter the directory of the game
  4. install required package like pygame. You can use command pip install -r requirements2.txt;
  5. run python3 Playgame.py to start playing the game;

Tutorial to Replicate The Result and Play the Game

All the code can be run on Mac. Not sure whether it's adaptable on Windows.

You need to clone the repo to local and run the following commands for different tasks.

For Gameplay

Play the Game [Part for the class]

  1. install python3 in your computer;
  2. open the command line of your computer, use git clone https://github.com/Cyuhaohao/CapstoneProject.git to clone the code to your local;
  3. use command cd CapstoneProject to enter the directory of the game
  4. install required package like pygame. You can use command pip install -r requirements2.txt;
  5. run python3 Playgame.py to start playing the game;

Analyze the efficiency of different Game AIs

  1. run python3 Gamecopy_AISimulation.py.
  2. run python3 Playgame.py 1 to enter supervisor's mode where you can see the whole map and the trace of AIs.

For Creature Generation

Data Preprocessing

  1. use ./setup.sh to install the necessary package;
  2. download the dataset of images of animals, which can be found through link https://www.kaggle.com/alessiocorrado99/animals10;
  3. run python3 seg.py 1 1 to do the data preprocessing.

DCGAN Training

  1. have the preprocessed images, you can also access it by: https://drive.google.com/file/d/19jHdSa-W4SCvqRWt5i1DKWAAbJfjh2Go/view?usp=sharing;
  2. open DCGAN_CP_Final.ipynb with google colab;
  3. upload the datasets;
  4. run the code blocks one by one.

About

My Capstone project


Languages

Language:Jupyter Notebook 99.7%Language:Python 0.3%Language:Shell 0.0%