数据已迁移全部帖子与账号都已迁入新论坛,认领后即可继续你的老账号:立即认领账号 ↗前往新站
BGC桌游网 · 历史存档(只读)

BGC桌游网

本站为 BGC桌游网 历史存档,仅供浏览与回忆;登录与发帖已关闭,新讨论请前往新论坛。
BGC桌游网»全部版块 › 游戏联盟 › 领土 › [领土]分析PC版的AI
查看: 1,980|回复: 6
上一主题下一主题

[领土]分析PC版的AI

[历史存档]
1楼
发表于 2010-5-13 11:36:36|只看该作者
本帖最后由 mebusw 于 2010-5-13 11:54 编辑

下了VB的代码看看,摘了AI部分的注释出来。发现没有很厉害的算法,不像银河的PC版AI,还弄了个神经网络出来。




Find best action to play:
1.' play throne room if we have any
2.' sort our actions by cost
a)' if I won't buy this card, then don'tplay it
b)' chapel / ambassador: only play whenthere is a curse in hand
c)' only play island is there is avictory card in hand
d)' never play remodel
e)' don't play lookout with fewer than 3cards in deck
f)' mine can only be played if you have acopper or silver in hand, and the next highest coin is available
g)' don't play moneylender without acopper
h)' don't play Outpost if we're on anextra turn
i)' only play smugglers if AI gotsomething worth more than 0
j)' remodel / ambassador / salvagers /island / trading post / upgrade need a card in hand to play
k)'only play throne room when there is another action in hand that we can play
3.' play any actions that yield more actions
4.' play shanty town
5.' if opponent gained a card costing 5 ormore, play Smugglers
6.' play Ambassador if we have any
7.' play the most expensive card left




Find best cards to buy:
1.' if we have 0 potions (and 4 coins), thenbuy a potion
2.' get a list of the most expensive thingswe can afford
a)' towards the end of the game only buyvictory points
b)'early in the game, never buy estat or duchy
c)' donot buy duke unless we already have at least 3 duchy
3.' if nothing was found to buy, try againwithout the restrictions
a)' donot add ambassador if we don't have any curses
4.' randomly choose from among the best cards
BGC桌游网 历史存档 · 不可回复
2楼
发表于 2010-5-13 13:46:17|只看该作者
never play remodel
remodel不好用吗?
我觉得后期用remodel把金币换6分还不错的
BGC桌游网 历史存档 · 不可回复
3楼
发表于 2010-5-13 23:12:13|只看该作者
remodel用不来
BGC桌游网 历史存档 · 不可回复
4楼
发表于 2010-5-14 08:35:56|只看该作者
LZ可以把代码共享下看下吗?~谢谢
BGC桌游网 历史存档 · 不可回复
5楼
发表于 2010-5-14 09:00:09|只看该作者
同求VB代码~~~
BGC桌游网 历史存档 · 不可回复
6楼
发表于 2010-5-14 10:39:28|只看该作者
我也很想看看原始碼~~

remodel不用應該是怕麻煩吧
BGC桌游网 历史存档 · 不可回复
7楼
发表于 2010-5-14 13:57:06|只看该作者
我也很想看看原始碼~~

remodel不用應該是怕麻煩吧
sam6205 发表于 2010-5-14 10:39



+1
remodel明显是好牌
BGC桌游网 历史存档 · 不可回复

全部版块|BGC桌游网

历史存档数据冻结于 2026-09 · GMT+8, 2026-11-19 14:31