A function to show buttons, letting the player(s) decide what to do: show the winning field, play again or exit.
1 2  | 
field | 
 matrix: the field.  | 
justsub | 
 boolean: should only be a subtitle plotted (below the winning field)?  | 
message | 
 character: a message to be plotted.  | 
MACuser | 
 boolean: on some non-mac computers this can be set to   | 
rows | 
 integer: how many rows shall the playing field have?  | 
columns | 
 integer: how many columns shall the playing field have?  | 
AI | 
 boolean: play against AI?  | 
AIstrength | 
 integer: strength of the AI - number of moves the AI will simulate?  | 
AIplayernumber | 
 integer: 0 or 1: should the AI be player 1 or player 2?  | 
PlayerNames | 
 array of characters: the players' names.  | 
PlayerColors | 
 vector of characters: the players' colors.  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.