Morpion solitaire/Unicon: Difference between revisions

Content added Content deleted
(→‎Multigame: note &alloc bug)
m (→‎Core Morpion Routines: fix comment re 5T/D)
Line 109: Line 109:
end
end


procedure ScanGridLine(G,r0,c0,ri,ci,dir,pool) #: scan 1 grid line (5T)
procedure ScanGridLine(G,r0,c0,ri,ci,dir,pool) #: scan 1 grid line (5T/D)
local L5,M,r,c,x
local L5,M,r,c,x
L5 := []
L5 := []
Line 127: Line 127:
end
end
procedure ValidMove5T(L,dir) #: Succeed if L has valid dir move
procedure ValidMove5T(L,dir) #: Succeed if L has valid 5T move
local i,j
local i,j
if *L ~= 5 then fail # wrong count
if *L ~= 5 then fail # wrong count
Line 213: Line 213:


procedure Scorefail(MG);end #: dummy always fails</lang>
procedure Scorefail(MG);end #: dummy always fails</lang>

== Strategy Support ==
== Strategy Support ==
<lang Unicon># Not yet complete </lang>
<lang Unicon># Not yet complete </lang>