Morpion solitaire/Unicon: Difference between revisions

Content added Content deleted
m (→‎Interface, Parameters, Globals: make difference between core vs. extended code clearer)
m (→‎Main and Core Game Play Procedures: minor tweaks for core code to reduce dep on ext code globals)
Line 82: Line 82:
put(MG.history,M) # save history
put(MG.history,M) # save history
MG.score +:= 1 # and score
MG.score +:= 1 # and score
M_LogDetails(MG,M) # for analysis
\M_LogDetails(MG,M) # for analysis
every x := !M.line do { # draw the line
every x := !M.line do { # draw the line
g := MG.grid[x[1],x[2]]
g := MG.grid[x[1],x[2]]
Line 191: Line 191:
procedure ShowGame(MG) #: show games
procedure ShowGame(MG) #: show games
if M_Output === &output then
if M_Output === &output then
every (PrintGrid|WriteMoveLog|M_PrintDetails)(MG)
every (\(PrintGrid|WriteMoveLog|M_PrintDetails))(MG)
else # header first to output, game saved
else # header first to output, game saved
every (WriteMoveLog|PrintGrid|M_PrintDetails)(MG)
every (\(WriteMoveLog|PrintGrid|M_PrintDetails))(MG)
end
end