/Cross-Fire

This is a 🎮game writen in 🐍Python programming language.It includes two edition:The 🤖AI edition and the old edition.

Primary LanguagePythonApache License 2.0Apache-2.0

Cross-Fire

"Cross Fire" is a game writen in pygame and sklearn image

It includes two edition:The AI edition and old edition.

AI Edition

This is the AI game that use the machine learning algorithm and write in python program language.

install modules and python

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

Download the zip file on github and unzip it in your computer.

How to run?

$python "AIGame.py"  

Old Edition

How to play

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.

Example

step1:code is saved in the same path as the picture and music.
step2:Run the code
image
Enter the 'play'
image Next you can play the game!!!
image Press the keyboard Esc,exit the game.
image

download

Download the zip file on github and unzip it in your computer.

How to run?

$python "game.py"

About anuthor😎

🖥Facebook:https://www.facebook.com/xiao.stepfencurry.3
📧Email:stepfencurryxiao@gmail.com
🖥github:https://github.com/stepfencurryxiao
Welcome to leave a message!!!

If you like this

●Star
●Fork
●Contribute

License

see the Apache License.