geek745 / cecs475-project4
Project 4 for CECS-475 Group 2 at CSULB! It's checkers!
$ hg clone http://bitbucket.org/geek745/cecs475-project4/
| commit 82: | 9f48cecd7ab2 |
| parent 81: | 26bcfcf278d2 |
| parent 78: | b425e78422ee |
| branch: | default |
10 months ago
Changed (Δ730 bytes):
CheckersGameServer/CheckersGameServer.suo (binary file changed)
Checkers_game/CheckersGame.suo (binary file changed)
Checkers_game/CheckersGame/MainPage.Designer.cs (8 lines added, 18 lines removed)
Checkers_game/CheckersGame/MainPage.cs (6 lines added, 6 lines removed)
Checkers_game/CheckersGame/bin/Debug/CheckersGame.exe (binary file changed)
Checkers_game/CheckersGame/bin/Debug/CheckersGame.pdb (binary file changed)
Checkers_game/CheckersGame/obj/Debug/CheckersGame.csproj.GenerateResource.Cache (binary file changed)
Checkers_game/CheckersGame/obj/Debug/CheckersGame.exe (binary file changed)
Checkers_game/CheckersGame/obj/Debug/CheckersGame.pdb (binary file changed)
Up to file-list CheckersGameServer/CheckersGameServer.suo:
Up to file-list Checkers_game/CheckersGame.suo:
Up to file-list Checkers_game/CheckersGame/MainPage.Designer.cs:
| … | … | @@ -108,7 +108,6 @@ namespace CheckersGame |
108 |
108 |
this.Player1Status = new System.Windows.Forms.Label(); |
109 |
109 |
this.Player2Name = new System.Windows.Forms.Label(); |
110 |
110 |
this.playerColor_pictureBox = new System.Windows.Forms.PictureBox(); |
111 |
this.pieceColor_label = new System.Windows.Forms.Label(); |
|
112 |
111 |
this.menuStrip1.SuspendLayout(); |
113 |
112 |
((System.ComponentModel.ISupportInitialize)(this.MainFormPicture)).BeginInit(); |
114 |
113 |
((System.ComponentModel.ISupportInitialize)(this.playerColor_pictureBox)).BeginInit(); |
| … | … | @@ -752,27 +751,27 @@ namespace CheckersGame |
752 |
751 |
this.connectDisconnectToolStripMenuItem, |
753 |
752 |
this.exitToolStripMenuItem1}); |
754 |
753 |
this.toolStripMenuItem1.Name = "toolStripMenuItem1"; |
755 |
this.toolStripMenuItem1.Size = new System.Drawing.Size( |
|
754 |
this.toolStripMenuItem1.Size = new System.Drawing.Size(50, 20); |
|
756 |
755 |
this.toolStripMenuItem1.Text = "Game"; |
757 |
756 |
// |
758 |
757 |
// newGameToolStripMenuItem |
759 |
758 |
// |
760 |
759 |
this.newGameToolStripMenuItem.Name = "newGameToolStripMenuItem"; |
761 |
this.newGameToolStripMenuItem.Size = new System.Drawing.Size(18 |
|
760 |
this.newGameToolStripMenuItem.Size = new System.Drawing.Size(183, 22); |
|
762 |
761 |
this.newGameToolStripMenuItem.Text = "New Game"; |
763 |
762 |
this.newGameToolStripMenuItem.Click += new System.EventHandler(this.newGameToolStripMenuItem_Click); |
764 |
763 |
// |
765 |
764 |
// connectDisconnectToolStripMenuItem |
766 |
765 |
// |
767 |
766 |
this.connectDisconnectToolStripMenuItem.Name = "connectDisconnectToolStripMenuItem"; |
768 |
this.connectDisconnectToolStripMenuItem.Size = new System.Drawing.Size(18 |
|
767 |
this.connectDisconnectToolStripMenuItem.Size = new System.Drawing.Size(183, 22); |
|
769 |
768 |
this.connectDisconnectToolStripMenuItem.Text = "Connect/Disconnect"; |
770 |
769 |
this.connectDisconnectToolStripMenuItem.Click += new System.EventHandler(this.connectDisconnectToolStripMenuItem_Click); |
771 |
770 |
// |
772 |
771 |
// exitToolStripMenuItem1 |
773 |
772 |
// |
774 |
773 |
this.exitToolStripMenuItem1.Name = "exitToolStripMenuItem1"; |
775 |
this.exitToolStripMenuItem1.Size = new System.Drawing.Size(18 |
|
774 |
this.exitToolStripMenuItem1.Size = new System.Drawing.Size(183, 22); |
|
776 |
775 |
this.exitToolStripMenuItem1.Text = "Exit"; |
777 |
776 |
this.exitToolStripMenuItem1.Click += new System.EventHandler(this.exitToolStripMenuItem1_Click); |
778 |
777 |
// |
| … | … | @@ -782,20 +781,20 @@ namespace CheckersGame |
782 |
781 |
this.viewHelpToolStripMenuItem, |
783 |
782 |
this.aboutCheckersToolStripMenuItem}); |
784 |
783 |
this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; |
785 |
this.helpToolStripMenuItem.Size = new System.Drawing.Size(4 |
|
784 |
this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20); |
|
786 |
785 |
this.helpToolStripMenuItem.Text = "Help"; |
787 |
786 |
// |
788 |
787 |
// viewHelpToolStripMenuItem |
789 |
788 |
// |
790 |
789 |
this.viewHelpToolStripMenuItem.Name = "viewHelpToolStripMenuItem"; |
791 |
this.viewHelpToolStripMenuItem.Size = new System.Drawing.Size(1 |
|
790 |
this.viewHelpToolStripMenuItem.Size = new System.Drawing.Size(158, 22); |
|
792 |
791 |
this.viewHelpToolStripMenuItem.Text = "View Help"; |
793 |
792 |
this.viewHelpToolStripMenuItem.Click += new System.EventHandler(this.viewHelpToolStripMenuItem_Click); |
794 |
793 |
// |
795 |
794 |
// aboutCheckersToolStripMenuItem |
796 |
795 |
// |
797 |
796 |
this.aboutCheckersToolStripMenuItem.Name = "aboutCheckersToolStripMenuItem"; |
798 |
this.aboutCheckersToolStripMenuItem.Size = new System.Drawing.Size(1 |
|
797 |
this.aboutCheckersToolStripMenuItem.Size = new System.Drawing.Size(158, 22); |
|
799 |
798 |
this.aboutCheckersToolStripMenuItem.Text = "About Checkers"; |
800 |
799 |
this.aboutCheckersToolStripMenuItem.Click += new System.EventHandler(this.aboutCheckersToolStripMenuItem_Click); |
801 |
800 |
// |
| … | … | @@ -865,15 +864,8 @@ namespace CheckersGame |
865 |
864 |
this.playerColor_pictureBox.TabIndex = 71; |
866 |
865 |
this.playerColor_pictureBox.TabStop = false; |
867 |
866 |
// |
868 |
// pieceColor_label |
|
869 |
867 |
// |
870 |
this.pieceColor_label.AutoSize = true; |
|
871 |
this.pieceColor_label.BackColor = System.Drawing.Color.Transparent; |
|
872 |
this.pieceColor_label.Location = new System.Drawing.Point(623, 326); |
|
873 |
this.pieceColor_label.Name = "pieceColor_label"; |
|
874 |
this.pieceColor_label.Size = new System.Drawing.Size(97, 13); |
|
875 |
this.pieceColor_label.TabIndex = 72; |
|
876 |
this.pieceColor_label.Text = "Your Piece Color Is"; |
|
868 |
||
877 |
869 |
// |
878 |
870 |
// MainPage |
879 |
871 |
// |
| … | … | @@ -883,7 +875,6 @@ namespace CheckersGame |
883 |
875 |
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage"))); |
884 |
876 |
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
885 |
877 |
this.ClientSize = new System.Drawing.Size(780, 577); |
886 |
this.Controls.Add(this.pieceColor_label); |
|
887 |
878 |
this.Controls.Add(this.playerColor_pictureBox); |
888 |
879 |
this.Controls.Add(this.Player2Name); |
889 |
880 |
this.Controls.Add(this.Player1Status); |
| … | … | @@ -1053,7 +1044,6 @@ namespace CheckersGame |
1053 |
1044 |
private System.Windows.Forms.Label Player1Status; |
1054 |
1045 |
private System.Windows.Forms.Label Player2Name; |
1055 |
1046 |
private System.Windows.Forms.PictureBox playerColor_pictureBox; |
1056 |
private System.Windows.Forms.Label pieceColor_label; |
|
1057 |
1047 |
} |
1058 |
1048 |
} |
1059 |
1049 |
Up to file-list Checkers_game/CheckersGame/MainPage.cs:
| … | … | @@ -213,13 +213,13 @@ namespace CheckersGame |
213 |
213 |
private void Run() |
214 |
214 |
{ |
215 |
215 |
player = reader.ReadInt32(); |
216 |
myTurn = false; |
|
217 |
if(player ==0) |
|
218 |
playerColor_pictureBox.Image = global::CheckersGame.Properties.Resources.BrownPiece; |
|
219 |
else |
|
216 |
myTurn = false; |
|
217 |
if (player == 0) |
|
218 |
playerColor_pictureBox.Image = global::CheckersGame.Properties.Resources.BrownPiece; |
|
219 |
else |
|
220 |
220 |
playerColor_pictureBox.Image = global::CheckersGame.Properties.Resources.RedPiece; |
221 |
221 |
writer.Write(PlayerName); |
222 |
|
|
222 |
NewGame(); |
|
223 |
223 |
try |
224 |
224 |
{ |
225 |
225 |
// loop looking for messages |
| … | … | @@ -421,7 +421,7 @@ namespace CheckersGame |
421 |
421 |
//displays the number of pieces in the Status label |
422 |
422 |
// WritePlayerStatus(Player1Status, "You have " + standing[0].ToString() + " pieces left"); |
423 |
423 |
// WritePlayerStatus(Player2Name, "Your opponent has " + standing[1].ToString() + " pieces left"); |
424 |
}//end refreshBoard |
|
424 |
||
425 |
425 |
|
426 |
426 |
|
427 |
427 |
/// Code when clicked on the NewGame option on the Game Menu |
Up to file-list Checkers_game/CheckersGame/bin/Debug/CheckersGame.exe:
Up to file-list Checkers_game/CheckersGame/bin/Debug/CheckersGame.pdb:
Up to file-list Checkers_game/CheckersGame/obj/Debug/CheckersGame.csproj.GenerateResource.Cache:
Up to file-list Checkers_game/CheckersGame/obj/Debug/CheckersGame.exe:
Up to file-list Checkers_game/CheckersGame/obj/Debug/CheckersGame.pdb:
