Click here to Skip to main content
15,884,986 members
Articles / Programming Languages / C#

Reversi in C#

Rate me:
Please Sign up or sign in to vote.
4.94/5 (188 votes)
26 Sep 200513 min read 770.5K   27K   300  
The game of Reversi in C#.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Menu Options</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>

<h4>Menu Options</h4>

<p>This section details all the items available from the main menu. Each can also be accessed via  the indicated keyboard shortcut. Many of these options can be selected from the tool bar as well (see <a href="playing.htm">Playing Reversi</a>).</p>

<h5>Game Menu</h5>

<ul>
	<li><strong>New Game</strong>  [<strong>Ctrl+N</strong>]<strong>:</strong> Starts a new game.</li>
	<li><strong>Resign Game</strong> [<strong>Ctrl+R</strong>]<strong>:</strong> Resigns the current game.</li>
	<li><strong>Options</strong> [<strong>Ctrl+O</strong>]<strong>:</strong> Opens the game <a href="options.htm">Options</a> dialog.</li>
	<li><a name="statistics"><strong>Statistics</strong></a> [<strong>Ctrl+S</strong>]<strong>:</strong> Displays the current win-loss-draw count and total scores from two perspectives: Black vs. White and Computer vs. User. You can clear these by pressing the <strong>Reset</strong> button. Press the <strong>Close</strong> button to close the window.</li>
	<li><strong>Exit</strong>  [<strong>Ctrl+X</strong>]<strong>:</strong> Exits the program.</li>
</ul>

<h5>Move Menu</h5>

<ul>
	<li><strong>Undo Move</strong>  [<strong>Ctrl+Z</strong>]<strong>:</strong> Allows you to undo the last move made. You can undo moves repeatedly, all the way back to the start of the game.</li>
	<li><strong>Redo Move</strong>  [<strong>Ctrl+Y</strong>]<strong>:</strong> Restores the previously undone move. May also be used repeatedly.</li>
	<li><strong>Undo All Moves</strong>  [<strong>Ctrl+Shift+Z</strong>]<strong>:</strong> Undoes all moves.</li>
	<li><strong>Redo All Moves</strong>  [<strong>Ctrl+Shift+Y</strong>]<strong>:</strong> Restores all moves.</li>
	<li><strong>Resume Play</strong>  [<strong>Ctrl+P</strong>]<strong>:</strong> Use this option to resume play when an undo/redo move has stopped on the computer's turn.</li>
</ul>

<h5>Help Menu</h5>

<ul>
	<li><strong>Help Topics</strong>  [<strong>Ctrl+H</strong>]<strong>:</strong> Opens this help window.</li>
	<li><strong>About </strong>  [<strong>Ctrl+A</strong>]<strong>:</strong> Displays program and version information.</li>
</ul>

<div>
	<object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">
		<param name="Keyword" value="computer" />
		<param name="Keyword" value="end game" />
		<param name="Keyword" value="exit" />
		<param name="Keyword" value="move" />
		<param name="Keyword" value="new game" />
		<param name="Keyword" value="options" />
		<param name="Keyword" value="player" />
		<param name="Keyword" value="redo move" />
		<param name="Keyword" value="resign game" />
		<param name="Keyword" value="resume play" />
		<param name="Keyword" value="start game" />
		<param name="Keyword" value="statistics" />
		<param name="Keyword" value="turn" />
		<param name="Keyword" value="undo move" />
	</object>
</div>

</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions