C# 클래스 NeatTicTacToe.GameForm

상속: System.Windows.Forms.Form
파일 보기 프로젝트 열기: tansey/sharpneat-tutorials

공개 메소드들

메소드 설명
GameForm ( ) : System

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnPaint ( PaintEventArgs e ) : void
OnResize ( EventArgs e ) : void

비공개 메소드들

메소드 설명
GameForm_MouseClick ( object sender, MouseEventArgs e ) : void

Fills in the square that the human clicked on, gets the AI's response, and checks for a winner.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

endGame ( string message ) : void

Ends the game and displays a pop-up message to the player.

getComputerOpponentMove ( ) : void

Gets the next move from the AI.

loadGenomeFromFile ( bool readFunctionIds ) : void
loadHyperNEATPlayerToolStripMenuItem_Click ( object sender, EventArgs e ) : void
loadNEATPlayerToolStripMenuItem1_Click ( object sender, EventArgs e ) : void
neatPlayerToolStripMenuItem_Click ( object sender, EventArgs e ) : void
newGameToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Resets the board and starts a new game.

oToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Sets the human's square type to O and the AI's square type to X.

optimalPlayerToolStripMenuItem_Click ( object sender, EventArgs e ) : void
randomPlayerToolStripMenuItem_Click ( object sender, EventArgs e ) : void
xToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Sets the human's square type to X and the AI's square type to O.

메소드 상세

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void

GameForm() 공개 메소드

public GameForm ( ) : System
리턴 System

OnPaint() 보호된 메소드

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
리턴 void

OnResize() 보호된 메소드

protected OnResize ( EventArgs e ) : void
e System.EventArgs
리턴 void