作者LPH66 (IWH68S0XZ8M89)
看板Programming
标题Re: [问题] 关於麻将的演算法
时间Sun Dec 16 14:06:10 2007
※ 引述《bgcrwf (老王)》之铭言:
: 假设随便给16张牌
: 要如何判断是否听牌了以及听哪些牌呢
: 想很久都没头绪
: 不知道能否请接触过这方面的版众给点想法吗
: 谢谢
问题可以化归为判断是否胡牌 (why?)
至於判断是否胡牌...
你怎麽确定胡了没就让电脑那麽做 XD (虽然是很想只这样说啦)
实做判断时大概就是一个递回函式 每次拿掉一个面子这样
--
啊? 怎麽化归成判断胡牌? →[
一张一张试不是很简单吗XD] (PTT请按\)
--
'Oh, Harry, dont't you
see?' Hermione breathed. 'If she could have done
one thing to make
absolutely sure that every single person in this school
will read your interview, it was
banning it!'
---'Harry Potter and the order of the phoenix', P513
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.250.80
1F:推 bgcrwf:我研究看看 有问题再PO版 谢谢你 220.131.79.151 12/16 15:28