Using AI to self piloting X-wing in Star wars battlefront (with howto and code)

in #gaming8 years ago

Can the force be with AI to destroy death star by deep learning? This is a test of using supervised machine learning to self-pilot X-wing and travel back and forth in the battlefront.

Model developed using Tensorflow. Check out the code in my ->[Github Repo]<- 


**Highlight**

X-wing entering the battle

Manoeuvre and auto balancing

Evading Tie fighter


[Youtube video]

**Model / howto**

The AI has been provided with only 1 hour of video of actual game play together with the corresponding keypress, and trained by tensorflow for 8 hours to pilot a X-Wing just by itself.

All of the code can be found in github repo. 

Convolution and Maxpool: Technique used in image processing (applications including Alpha Go) to parse an image into a smaller frame. This enable the model to consider fewer pixels for decision making while keeping a good result (In most case even better).


Hidden layer: Classic hidden layer is similar to linear regression, while deep learning generally add an activation function to help the model to consider non-linearity.


**Citation here**

The idea and model are largely inspired by Sentdex self-driving programme.

Screen capture code is developed by Frannecklp.

Key input tracking code is developed by Box Of Hats.


**Important disclaimer**

This model is only tested in skirmish (single player mode) and will never be tested / play in any multi-play session.


**Summary**

The AI achieves satisfactory result in preventing plane crash accident, while lacking capacity to deal effective damage to Imperial Tie fighter. This is far from perfect.

The model is still in development and expected to have a large change in the future.


Follow me for more projects and experiments in deep learning application in gaming / natural language processing.

Sort:  

Congratulations @jimsparkle! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You published your First Post
You made your First Vote
You got a First Vote
Award for the number of upvotes received

Click on any badge to view your own Board of Honnor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

If you want to support the SteemitBoard project, your upvote for this notification is welcome!

Coin Marketplace

STEEM 0.13
TRX 0.34
JST 0.033
BTC 122596.55
ETH 4537.61
SBD 0.79