"Cross Fire" is a game writen in pygame and sklearn
It includes two edition:The AI edition and old edition.
This is the AI game that use the machine learning algorithm and write in python program language.
First,you should download the python and some packages about machine learning and game development.
🐍python 3.x
pygame 1.9.x
You can download python here
Pygame is a 2D game package in python program language.
Sklearn is a machine learning package and it includes many machine learning algorithms.
Numpy is a fast math package that can do matrix operations.
Use pandas to read the data.
pip install pygame
pip install sklearn
pip install numpy
pip install pandas
Download the zip file on github and unzip it in your computer.
$python "AIGame.py"
The player:
Keyboard UP : turn up.
Keyboard DOWN : turn down.
Keyboard RIGHT : turn right.
Keyboard LEFT : turn left.
The dragon:
Press the keyboard B.
If a dragon hits a bullet, Dragon will die.
If dragons encounter enemies,The enemy will die.
Exit the game
Press the keyboard Esc can exit the game.
step1:code is saved in the same path as the picture and music.
step2:Run the code
Enter the 'play'
Next you can play the game!!!
Press the keyboard Esc,exit the game.
Download the zip file on github and unzip it in your computer.
$python "game.py"
🖥Facebook:https://www.facebook.com/xiao.stepfencurry.3
📧Email:stepfencurryxiao@gmail.com
🖥github:https://github.com/stepfencurryxiao
Welcome to leave a message!!!
●Star
●Fork
●Contribute
see the Apache License.