Jump to content

Tic-tac-toe: Difference between revisions

m
fixed typo and rephased slightly
(Added a traditional Pascal solution)
m (fixed typo and rephased slightly)
Line 9,464:
In some ways easier to read, but because Pascal lack return/break/continue
functions a little long and different style. Tested with FreePascal on macOS.
I thinkwould expect this version should compilercompile onwith most Pascal variants including Delphi, but YMMR.
 
<lang Pascal>program tic(Input, Output);
Cookies help us deliver our services. By using our services, you agree to our use of cookies.