[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

BGonline.org Forums

"Hit/Most/6" rule spelled out

Posted By: Taper_Mike
Date: Sunday, 13 November 2011, at 8:50 p.m.

In Response To: "Hit/Most/6" rule spelled out (Taper_Mike)



To reinforce the difficulties of creating an algorithm for Hit/Most/Six, consider this. Seemingly, the Hit Convention groups all plays that hit at the top of the Nactation hierarchy. That being the case, a program might begin with these statements:



 

function A_outranks_B( playA, playB )
if playA.hits() and not playB.hits() then
return true;
else if playB.hits() and not playA.hits() then
return false;
else
// Check most points
// etc.
end function


This code fails, however, because certain plays that do not hit at all outrank some hitting plays. In particular, those plays that make an inner-board point in lieu of hitting rank higher.


Please, don't just nod in agreement. Show me some if-statements, and be sure to include consideration for "more hits are better than fewer hits."


Mike





Messages In This Thread

 

Post Response

Your Name:
Your E-Mail Address:
Subject:
Message:

If necessary, enter your password below:

Password:

 

 

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

BGonline.org Forums is maintained by Stick with WebBBS 5.12.