This site requires JavaScript, please enable it in your browser!
Greenfoot back
JetLennit
JetLennit wrote ...

2013/4/6

Turns

JetLennit JetLennit

2013/4/6

#
How to make it to where after you do a set of things the computer does a set of things? for example like in the civilization games .
Gevater_Tod4711 Gevater_Tod4711

2013/4/6

#
To let the computer play against you is realy not easy. To implement turns is. You just need to use a variable which says which turn it is at the moment but the arctivical intelligence that your programm needs is realy not easy. For an example you could take a look at my Cardgames scenario. I used variables for turns there. And also an arcitifical intelligence playing against you. You should first take a look at the code of Black Jack because that's the easyest one. The whole code of the AI is in the world classes. I hope that will help you.
JetLennit JetLennit

2013/4/6

#
Thank you for your help and for replying so quickly!
Duta Duta

2013/4/7

#
Gevater_Tod, it's spelt "artificial" :)
Gevater_Tod4711 Gevater_Tod4711

2013/4/7

#
Oh I see. Thank you Duta. Spelling was never one of my abilitys.
davmac davmac

2013/4/7

#
abilities :p
You need to login to post a reply.