Originally posted by Quietus
To simplify because english is not your first language:
Think of playing Chess on a computer. Your oppenent is the A.I.
I'd like to say that your AI (with a few modifications to colonial & target fields) has done an excellent job of winning the HYW for France. See here.here.Originally posted by Mad King James
I disagree![]()
# RND: random choice between options.
# X: human player id.
FOR all players X DO
IF cb==true and MilStrenght >= Player(X)+Allies THEN
DoW Player(X)
# The winter problem:
IF month > Nov THEN
Return troops from siege RND assault.
ELSE
Add more troops to siege RND check other provs siegestatus.
IF month == (Dec TO Mar) AND player X sieges_me THEN
Form the counteroffensive army.
Wait till spring.
# Consider a mulitplayer game of 3 humans, incl. one EU-robot.
# The two others thinks he is a human somewhere
# at the internet..... How can they tell?
# AI_DB: A logic database consisting of tracked human actions.
# Weakness_exploits: an essential algorithm determining
#computer strategy. Returns highest rated weaknesses
#of each player.
# DoW_check: an important algorithm checking CB, strength
#patterns of player warfare etc. Returns a DoW, or nil.
#game startup:
FOR all game_instances DO
Load AI_DB
Randomizer = disabled
PlayerTracking = Input to AI_DB
#in game example:
FOR all HumanPlayers DO
player1.weakness1 = Lookup AI_DB.record(1,1)
player2.weakness1 = Lookup AI_DB.record(2,1)
player1.warpattern1 = Lookup AI_DB.record(1,2)
player2.warpattern1 = Lookup AI_DB.record(2,2)
IF player1.weakness1 > player2.weakness1 THEN
DoW_check player1.warpattern1
Weakness_exploits ( player1, top_10_weak)
ELSE
DoW_check player2.warpattern1
Weakness_exploits ( player2, top_10_weak)
# Where '>' can be replaced by a generic comparator.
# And to check through weakness2, and weakness3, etc.
Originally posted by DoctorPlague
Why is the code black? How do I make it white?
You are talking about hard AI vs soft AI.Originally posted by DoctorPlague
Okay, real A.I. is when the computer can learn from our human action patterns. And so to act like you, or give an intelligent response.
Conclusion: It's just ordinary code, not a true A.I. code.
Originally posted by Petrarca
I'd like to say that your AI (with a few modifications to colonial & target fields) has done an excellent job of winning the HYW for France. See here.here.
Originally posted by Quizzical
It's quite a big leap to go from that pseudo-code to actual source code that works. There are probably also some major run-time problems in trying to do AI reasonably well for over a hundred countries at once.