From ad802570d327a7751296285bde645c2bbb2ccf1c Mon Sep 17 00:00:00 2001 From: Nathan Vance Date: Thu, 19 Mar 2015 22:11:22 -0400 Subject: started thinking about ai trading --- ai_trade.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ai_trade.c (limited to 'ai_trade.c') diff --git a/ai_trade.c b/ai_trade.c new file mode 100644 index 0000000..e5aef1e --- /dev/null +++ b/ai_trade.c @@ -0,0 +1,13 @@ +#include "7w.h" + +int data_getgold(int p); +int get_trade(int player, int type, int direction); +int data_canafford(int p, int era, int card); +void trade_clear(int player); + +int ai_trade(int player, int *cost) +{ + while(data_getgold(player) > 1) { + //finish trade_set and this + } +} -- cgit