Tic-tac-toe: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
=={{header|D}}== |
=={{header|D}}== |
||
<lang d>import std.stdio; |
<lang d>import std.stdio, std.string, std.algorithm, std.conv, std.random; |
||
import std.conv; |
|||
import std.string; |
|||
import std.random; |
|||
import std.algorithm; |
|||
struct Board { |
struct Board { |
||
Line 142: | Line 138: | ||
writeln("\nComputer wins."); |
writeln("\nComputer wins."); |
||
} |
} |
||
⚫ | |||
⚫ | |||
Output: |
Output: |
||
<pre> Tic-tac-toe game player. |
<pre> Tic-tac-toe game player. |