C# Class TicTacToe.Form1

Inheritance: System.Windows.Forms.Form
Datei anzeigen Open project: Aomwi/Deploy Class Usage Examples

Public Properties

Property Type Description
arrList List
comPlay bool
listButton ].Button[
listNum List
win bool

Public Methods

Method Description
CheckHorizontal ( int fixRow ) : void
CheckTransverse ( int i, int j ) : void
CheckVertical ( int fixCol ) : void
CheckWin ( ) : bool
CheckWin2 ( char tiles ) : char
Check_Transverse ( ) : void
Check_Winner ( ) : void
CheckkWin ( ) : bool
Click_botton ( int x, int y, System button ) : void
Complay ( ) : void
ComputerPlay ( ) : void
FillOnEmptyTile ( int numX, int numO, int posX, int posY ) : void
Form1 ( ) : System
InputOX ( Button button ) : void
KeepButtonToList ( ) : void
PlayerPlay ( Button button ) : void
RandomInput ( ) : void
SetEmptyTiles ( ) : void
SetValueToZero ( ) : void
TwoPlayerPlay ( Button button ) : void
evaluate_checkwin ( ) : bool
setEmptyTiles ( ) : void
setFont ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
Form1_Load ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

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

button1_Click ( object sender, EventArgs e ) : void
button2_Click ( object sender, EventArgs e ) : void
button3_Click ( object sender, EventArgs e ) : void
button4_Click ( object sender, EventArgs e ) : void
button5_Click ( object sender, EventArgs e ) : void
button6_Click ( object sender, EventArgs e ) : void
button7_Click ( object sender, EventArgs e ) : void
button8_Click ( object sender, EventArgs e ) : void
button9_Click ( object sender, EventArgs e ) : void
clearToolStripMenuItem_Click ( object sender, EventArgs e ) : void
exitToolStripMenuItem_Click ( object sender, EventArgs e ) : void
toolStripButton1_Click ( object sender, EventArgs e ) : void
vSComputerToolStripMenuItem_Click ( object sender, EventArgs e ) : void
vSPlayerToolStripMenuItem_Click ( object sender, EventArgs e ) : void
vsComputerToolStripMenuItem_Click ( object sender, EventArgs e ) : void
vsPlayerToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Method Details

CheckHorizontal() public method

public CheckHorizontal ( int fixRow ) : void
fixRow int
return void

CheckTransverse() public method

public CheckTransverse ( int i, int j ) : void
i int
j int
return void

CheckVertical() public method

public CheckVertical ( int fixCol ) : void
fixCol int
return void

CheckWin() public method

public CheckWin ( ) : bool
return bool

CheckWin2() public method

public CheckWin2 ( char tiles ) : char
tiles char
return char

Check_Transverse() public method

public Check_Transverse ( ) : void
return void

Check_Winner() public method

public Check_Winner ( ) : void
return void

CheckkWin() public method

public CheckkWin ( ) : bool
return bool

Click_botton() public method

public Click_botton ( int x, int y, System button ) : void
x int
y int
button System
return void

Complay() public method

public Complay ( ) : void
return void

ComputerPlay() public method

public ComputerPlay ( ) : void
return void

Dispose() protected method

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

FillOnEmptyTile() public method

public FillOnEmptyTile ( int numX, int numO, int posX, int posY ) : void
numX int
numO int
posX int
posY int
return void

Form1() public method

public Form1 ( ) : System
return System

InputOX() public method

public InputOX ( Button button ) : void
button Button
return void

KeepButtonToList() public method

public KeepButtonToList ( ) : void
return void

PlayerPlay() public method

public PlayerPlay ( Button button ) : void
button Button
return void

RandomInput() public method

public RandomInput ( ) : void
return void

SetEmptyTiles() public method

public SetEmptyTiles ( ) : void
return void

SetValueToZero() public method

public SetValueToZero ( ) : void
return void

TwoPlayerPlay() public method

public TwoPlayerPlay ( Button button ) : void
button Button
return void

evaluate_checkwin() public method

public evaluate_checkwin ( ) : bool
return bool

setEmptyTiles() public method

public setEmptyTiles ( ) : void
return void

setFont() public method

public setFont ( ) : void
return void

Property Details

arrList public_oe property

public List
return List

comPlay public_oe property

public bool comPlay
return bool

listButton public_oe property

public Button[,] listButton
return ].Button[

listNum public_oe property

public List listNum
return List

win public_oe property

public bool win
return bool