If a proper logic has been devised the next part is to code and test the player.
These two steps have very little to say as it entirely depends on the coding style of individuals.
So in this part I would like to give a general summary of how to participate in an AIP contest….
So here it is…
1. Read the problem statement. Most of the contest organisers wrap a simple concept around a big theme to make it look complex. Try understanding the basic meaning of the statement
2.Download the API provided and try running it on your system using the documentation provided.
3.Frame a problem statement of your own that is very simple. It should just contain the basic information obtained from step1. It need not necessarily be a single sentence.
4.Use this problem statement to understand the game and imagine some possible scenarios in the game.
5. Try to identify the pros and cons for the player due to loopholes in the statement.
6. Now identify scenarios which would make the player be in such advantageous states of the game.(S-E-E logic)
7. Design an offensive logic that will make the player reach such advantageous states.
8.Then identify scenarios which would make the player be in such disadvantageous states of the game.(S-I-P logic)
9. Design an defensive logic that will prevent the player reach such disadvantageous states.
10.Merge both. Take care of the influence of external elements that arise in the game(problem statement).
11. Now adapt the code according the format given in the statement.
(Usually you need to put the entire player logic inside a function with predefined name<given in statement> and return something out of the logic code )
12. Some contests hold testing sessions where you can just submit coding in parts and check its functions for faults.(humans are bound to make mistakes!!!!)
Participate in such sessions to test your players and make final changes.
13. Submit the code after testing phase
14.(lol… ) wait for the result!!!! ๐
Hope using these simple steps you find it easy to participate in AIPs and have fun!
cheers
Vidhoonv