Rock Paper Scissors build
This commit is contained in:
parent
cbe581d438
commit
abae985418
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,130 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="Mount-Rushmore" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Mount-Rushmore.jpeg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="scissors" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\scissors.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="paper" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\paper.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Compile Update="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
</Project>
|
Binary file not shown.
Before Width: | Height: | Size: 521 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.1 MiB |
Binary file not shown.
Before Width: | Height: | Size: 30 KiB |
Binary file not shown.
Binary file not shown.
@ -1,18 +0,0 @@
|
||||
Z:\home\caleb\Documents\ASDV-C-Sharp\MP4\RCS_CalebFontenot\RCS_CalebFontenot\bin\Debug\net6.0-windows\RCS_CalebFontenot.exe
|
||||
Z:\home\caleb\Documents\ASDV-C-Sharp\MP4\RCS_CalebFontenot\RCS_CalebFontenot\bin\Debug\net6.0-windows\RCS_CalebFontenot.deps.json
|
||||
Z:\home\caleb\Documents\ASDV-C-Sharp\MP4\RCS_CalebFontenot\RCS_CalebFontenot\bin\Debug\net6.0-windows\RCS_CalebFontenot.runtimeconfig.json
|
||||
Z:\home\caleb\Documents\ASDV-C-Sharp\MP4\RCS_CalebFontenot\RCS_CalebFontenot\bin\Debug\net6.0-windows\RCS_CalebFontenot.dll
|
||||
Z:\home\caleb\Documents\ASDV-C-Sharp\MP4\RCS_CalebFontenot\RCS_CalebFontenot\bin\Debug\net6.0-windows\RCS_CalebFontenot.pdb
|
||||
Z:\home\caleb\Documents\ASDV-C-Sharp\MP4\RCS_CalebFontenot\RCS_CalebFontenot\obj\Debug\net6.0-windows\RCS_CalebFontenot.csproj.AssemblyReference.cache
|
||||
Z:\home\caleb\Documents\ASDV-C-Sharp\MP4\RCS_CalebFontenot\RCS_CalebFontenot\obj\Debug\net6.0-windows\RCS_CalebFontenot.Form1.resources
|
||||
Z:\home\caleb\Documents\ASDV-C-Sharp\MP4\RCS_CalebFontenot\RCS_CalebFontenot\obj\Debug\net6.0-windows\RCS_CalebFontenot.Properties.Resources.resources
|
||||
Z:\home\caleb\Documents\ASDV-C-Sharp\MP4\RCS_CalebFontenot\RCS_CalebFontenot\obj\Debug\net6.0-windows\RCS_CalebFontenot.csproj.GenerateResource.cache
|
||||
Z:\home\caleb\Documents\ASDV-C-Sharp\MP4\RCS_CalebFontenot\RCS_CalebFontenot\obj\Debug\net6.0-windows\RCS_CalebFontenot.GeneratedMSBuildEditorConfig.editorconfig
|
||||
Z:\home\caleb\Documents\ASDV-C-Sharp\MP4\RCS_CalebFontenot\RCS_CalebFontenot\obj\Debug\net6.0-windows\RCS_CalebFontenot.AssemblyInfoInputs.cache
|
||||
Z:\home\caleb\Documents\ASDV-C-Sharp\MP4\RCS_CalebFontenot\RCS_CalebFontenot\obj\Debug\net6.0-windows\RCS_CalebFontenot.AssemblyInfo.cs
|
||||
Z:\home\caleb\Documents\ASDV-C-Sharp\MP4\RCS_CalebFontenot\RCS_CalebFontenot\obj\Debug\net6.0-windows\RCS_CalebFontenot.csproj.CoreCompileInputs.cache
|
||||
Z:\home\caleb\Documents\ASDV-C-Sharp\MP4\RCS_CalebFontenot\RCS_CalebFontenot\obj\Debug\net6.0-windows\RCS_CalebFontenot.dll
|
||||
Z:\home\caleb\Documents\ASDV-C-Sharp\MP4\RCS_CalebFontenot\RCS_CalebFontenot\obj\Debug\net6.0-windows\refint\RCS_CalebFontenot.dll
|
||||
Z:\home\caleb\Documents\ASDV-C-Sharp\MP4\RCS_CalebFontenot\RCS_CalebFontenot\obj\Debug\net6.0-windows\RCS_CalebFontenot.pdb
|
||||
Z:\home\caleb\Documents\ASDV-C-Sharp\MP4\RCS_CalebFontenot\RCS_CalebFontenot\obj\Debug\net6.0-windows\RCS_CalebFontenot.genruntimeconfig.cache
|
||||
Z:\home\caleb\Documents\ASDV-C-Sharp\MP4\RCS_CalebFontenot\RCS_CalebFontenot\obj\Debug\net6.0-windows\ref\RCS_CalebFontenot.dll
|
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
||||
6158b62f84684e64f4f5e79b3cfd2f044e28d622
|
Binary file not shown.
Binary file not shown.
@ -1,8 +0,0 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "ik4oNaGDVVO8CAQTFZ0p5uPx6ACwukpQYzJtTBM7vlwFJL6OLKloWnMjxYOZ6vCTX8DIngHrj/aOwRJL06OL3Q==",
|
||||
"success": true,
|
||||
"projectFilePath": "Z:\\home\\caleb\\Documents\\ASDV-C-Sharp\\MP4\\RCS_CalebFontenot\\RCS_CalebFontenot\\RCS_CalebFontenot.csproj",
|
||||
"expectedPackageFiles": [],
|
||||
"logs": []
|
||||
}
|
Binary file not shown.
BIN
MP4/RPS_CalebFontenot/.vs/ProjectEvaluation/rcs_calebfontenot.projects.v5.1
Executable file
BIN
MP4/RPS_CalebFontenot/.vs/ProjectEvaluation/rcs_calebfontenot.projects.v5.1
Executable file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
MP4/RPS_CalebFontenot/.vs/RCS_CalebFontenot/v17/.suo
Executable file
BIN
MP4/RPS_CalebFontenot/.vs/RCS_CalebFontenot/v17/.suo
Executable file
Binary file not shown.
@ -39,6 +39,16 @@
|
||||
this.exitButton = new System.Windows.Forms.Button();
|
||||
this.groupBox4 = new System.Windows.Forms.GroupBox();
|
||||
this.cpuMove = new System.Windows.Forms.PictureBox();
|
||||
this.groupBox5 = new System.Windows.Forms.GroupBox();
|
||||
this.groupBox6 = new System.Windows.Forms.GroupBox();
|
||||
this.cpuScissorsCounter = new System.Windows.Forms.Label();
|
||||
this.cpuRockCounter = new System.Windows.Forms.Label();
|
||||
this.cpuPaperCounter = new System.Windows.Forms.Label();
|
||||
this.groupBox7 = new System.Windows.Forms.GroupBox();
|
||||
this.playerScissorsCounter = new System.Windows.Forms.Label();
|
||||
this.playerRockCounter = new System.Windows.Forms.Label();
|
||||
this.playerPaperCounter = new System.Windows.Forms.Label();
|
||||
this.clearButton = new System.Windows.Forms.Button();
|
||||
this.groupBox1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.rockPictureBox)).BeginInit();
|
||||
this.groupBox2.SuspendLayout();
|
||||
@ -47,6 +57,9 @@
|
||||
((System.ComponentModel.ISupportInitialize)(this.scissorPictureBox)).BeginInit();
|
||||
this.groupBox4.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.cpuMove)).BeginInit();
|
||||
this.groupBox5.SuspendLayout();
|
||||
this.groupBox6.SuspendLayout();
|
||||
this.groupBox7.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// groupBox1
|
||||
@ -62,7 +75,7 @@
|
||||
// rockPictureBox
|
||||
//
|
||||
this.rockPictureBox.Enabled = false;
|
||||
this.rockPictureBox.Image = global::RCS_CalebFontenot.Properties.Resources.Mount_Rushmore;
|
||||
this.rockPictureBox.Image = global::RCS_CalebFontenot.Properties.Resources.Rock;
|
||||
this.rockPictureBox.Location = new System.Drawing.Point(6, 22);
|
||||
this.rockPictureBox.Name = "rockPictureBox";
|
||||
this.rockPictureBox.Size = new System.Drawing.Size(238, 154);
|
||||
@ -83,7 +96,7 @@
|
||||
//
|
||||
// paperPictureBox
|
||||
//
|
||||
this.paperPictureBox.Image = global::RCS_CalebFontenot.Properties.Resources.paper;
|
||||
this.paperPictureBox.Image = global::RCS_CalebFontenot.Properties.Resources.Paper;
|
||||
this.paperPictureBox.Location = new System.Drawing.Point(6, 22);
|
||||
this.paperPictureBox.Name = "paperPictureBox";
|
||||
this.paperPictureBox.Size = new System.Drawing.Size(238, 154);
|
||||
@ -104,7 +117,7 @@
|
||||
//
|
||||
// scissorPictureBox
|
||||
//
|
||||
this.scissorPictureBox.Image = global::RCS_CalebFontenot.Properties.Resources.scissors;
|
||||
this.scissorPictureBox.Image = global::RCS_CalebFontenot.Properties.Resources.Scissors;
|
||||
this.scissorPictureBox.Location = new System.Drawing.Point(6, 22);
|
||||
this.scissorPictureBox.Name = "scissorPictureBox";
|
||||
this.scissorPictureBox.Size = new System.Drawing.Size(238, 154);
|
||||
@ -144,7 +157,7 @@
|
||||
// groupBox4
|
||||
//
|
||||
this.groupBox4.Controls.Add(this.cpuMove);
|
||||
this.groupBox4.Location = new System.Drawing.Point(274, 230);
|
||||
this.groupBox4.Location = new System.Drawing.Point(113, 227);
|
||||
this.groupBox4.Name = "groupBox4";
|
||||
this.groupBox4.Size = new System.Drawing.Size(244, 170);
|
||||
this.groupBox4.TabIndex = 5;
|
||||
@ -153,18 +166,119 @@
|
||||
//
|
||||
// cpuMove
|
||||
//
|
||||
this.cpuMove.Location = new System.Drawing.Point(6, 22);
|
||||
this.cpuMove.Location = new System.Drawing.Point(6, 25);
|
||||
this.cpuMove.Name = "cpuMove";
|
||||
this.cpuMove.Size = new System.Drawing.Size(232, 142);
|
||||
this.cpuMove.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||
this.cpuMove.TabIndex = 0;
|
||||
this.cpuMove.TabStop = false;
|
||||
//
|
||||
// groupBox5
|
||||
//
|
||||
this.groupBox5.Controls.Add(this.groupBox6);
|
||||
this.groupBox5.Controls.Add(this.groupBox7);
|
||||
this.groupBox5.Location = new System.Drawing.Point(444, 227);
|
||||
this.groupBox5.Name = "groupBox5";
|
||||
this.groupBox5.Size = new System.Drawing.Size(271, 167);
|
||||
this.groupBox5.TabIndex = 6;
|
||||
this.groupBox5.TabStop = false;
|
||||
this.groupBox5.Text = "Win Counter";
|
||||
//
|
||||
// groupBox6
|
||||
//
|
||||
this.groupBox6.Controls.Add(this.cpuScissorsCounter);
|
||||
this.groupBox6.Controls.Add(this.cpuRockCounter);
|
||||
this.groupBox6.Controls.Add(this.cpuPaperCounter);
|
||||
this.groupBox6.Location = new System.Drawing.Point(6, 22);
|
||||
this.groupBox6.Name = "groupBox6";
|
||||
this.groupBox6.Size = new System.Drawing.Size(259, 58);
|
||||
this.groupBox6.TabIndex = 0;
|
||||
this.groupBox6.TabStop = false;
|
||||
this.groupBox6.Text = "Computer";
|
||||
//
|
||||
// cpuScissorsCounter
|
||||
//
|
||||
this.cpuScissorsCounter.Location = new System.Drawing.Point(178, 19);
|
||||
this.cpuScissorsCounter.Name = "cpuScissorsCounter";
|
||||
this.cpuScissorsCounter.Size = new System.Drawing.Size(80, 23);
|
||||
this.cpuScissorsCounter.TabIndex = 2;
|
||||
this.cpuScissorsCounter.Text = "Scissors: 0";
|
||||
this.cpuScissorsCounter.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// cpuRockCounter
|
||||
//
|
||||
this.cpuRockCounter.Location = new System.Drawing.Point(6, 19);
|
||||
this.cpuRockCounter.Name = "cpuRockCounter";
|
||||
this.cpuRockCounter.Size = new System.Drawing.Size(80, 23);
|
||||
this.cpuRockCounter.TabIndex = 0;
|
||||
this.cpuRockCounter.Text = "Rock: 0";
|
||||
this.cpuRockCounter.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// cpuPaperCounter
|
||||
//
|
||||
this.cpuPaperCounter.Location = new System.Drawing.Point(92, 19);
|
||||
this.cpuPaperCounter.Name = "cpuPaperCounter";
|
||||
this.cpuPaperCounter.Size = new System.Drawing.Size(80, 23);
|
||||
this.cpuPaperCounter.TabIndex = 1;
|
||||
this.cpuPaperCounter.Text = "Paper: 0";
|
||||
this.cpuPaperCounter.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// groupBox7
|
||||
//
|
||||
this.groupBox7.Controls.Add(this.playerScissorsCounter);
|
||||
this.groupBox7.Controls.Add(this.playerRockCounter);
|
||||
this.groupBox7.Controls.Add(this.playerPaperCounter);
|
||||
this.groupBox7.Location = new System.Drawing.Point(6, 86);
|
||||
this.groupBox7.Name = "groupBox7";
|
||||
this.groupBox7.Size = new System.Drawing.Size(258, 58);
|
||||
this.groupBox7.TabIndex = 1;
|
||||
this.groupBox7.TabStop = false;
|
||||
this.groupBox7.Text = "Player";
|
||||
//
|
||||
// playerScissorsCounter
|
||||
//
|
||||
this.playerScissorsCounter.Location = new System.Drawing.Point(178, 19);
|
||||
this.playerScissorsCounter.Name = "playerScissorsCounter";
|
||||
this.playerScissorsCounter.Size = new System.Drawing.Size(74, 23);
|
||||
this.playerScissorsCounter.TabIndex = 5;
|
||||
this.playerScissorsCounter.Text = "Scissors: 0";
|
||||
this.playerScissorsCounter.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// playerRockCounter
|
||||
//
|
||||
this.playerRockCounter.Location = new System.Drawing.Point(6, 19);
|
||||
this.playerRockCounter.Name = "playerRockCounter";
|
||||
this.playerRockCounter.Size = new System.Drawing.Size(80, 23);
|
||||
this.playerRockCounter.TabIndex = 3;
|
||||
this.playerRockCounter.Text = "Rock: 0";
|
||||
this.playerRockCounter.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// playerPaperCounter
|
||||
//
|
||||
this.playerPaperCounter.Location = new System.Drawing.Point(92, 19);
|
||||
this.playerPaperCounter.Name = "playerPaperCounter";
|
||||
this.playerPaperCounter.Size = new System.Drawing.Size(80, 23);
|
||||
this.playerPaperCounter.TabIndex = 4;
|
||||
this.playerPaperCounter.Text = "Paper: 0";
|
||||
this.playerPaperCounter.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// clearButton
|
||||
//
|
||||
this.clearButton.Location = new System.Drawing.Point(363, 287);
|
||||
this.clearButton.Name = "clearButton";
|
||||
this.clearButton.Size = new System.Drawing.Size(75, 43);
|
||||
this.clearButton.TabIndex = 7;
|
||||
this.clearButton.Text = "Clear Counter";
|
||||
this.clearButton.UseVisualStyleBackColor = true;
|
||||
this.clearButton.Click += new System.EventHandler(this.clearButton_Click);
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(784, 412);
|
||||
this.Controls.Add(this.clearButton);
|
||||
this.Controls.Add(this.groupBox5);
|
||||
this.Controls.Add(this.groupBox4);
|
||||
this.Controls.Add(this.exitButton);
|
||||
this.Controls.Add(this.newGameButton);
|
||||
@ -183,6 +297,9 @@
|
||||
((System.ComponentModel.ISupportInitialize)(this.scissorPictureBox)).EndInit();
|
||||
this.groupBox4.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.cpuMove)).EndInit();
|
||||
this.groupBox5.ResumeLayout(false);
|
||||
this.groupBox6.ResumeLayout(false);
|
||||
this.groupBox7.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@ -200,5 +317,15 @@
|
||||
private Button exitButton;
|
||||
private GroupBox groupBox4;
|
||||
private PictureBox cpuMove;
|
||||
private GroupBox groupBox5;
|
||||
private GroupBox groupBox7;
|
||||
private GroupBox groupBox6;
|
||||
private Button clearButton;
|
||||
private Label cpuRockCounter;
|
||||
private Label cpuPaperCounter;
|
||||
private Label cpuScissorsCounter;
|
||||
private Label playerScissorsCounter;
|
||||
private Label playerRockCounter;
|
||||
private Label playerPaperCounter;
|
||||
}
|
||||
}
|
@ -7,6 +7,61 @@ namespace RCS_CalebFontenot
|
||||
InitializeComponent();
|
||||
}
|
||||
private int cpuAction;
|
||||
private long cpuRockCount = 0, playerRockCount = 0, cpuScissorsCount = 0, playerScissorsCount = 0, cpuPaperCount = 0, playerPaperCount = 0;
|
||||
private void updateTextBoxes()
|
||||
{
|
||||
// Increment the textboxes!
|
||||
cpuRockCounter.Text = "Rock: " + cpuRockCount.ToString();
|
||||
playerRockCounter.Text = "Rock: " + playerRockCount.ToString();
|
||||
|
||||
cpuPaperCounter.Text = "Paper: " + cpuPaperCount.ToString();
|
||||
playerPaperCounter.Text = "Paper: " + playerPaperCount.ToString();
|
||||
|
||||
cpuScissorsCounter.Text = "Scissors: " + cpuScissorsCount.ToString();
|
||||
playerScissorsCounter.Text = "Scissors: " + playerScissorsCount.ToString();
|
||||
}
|
||||
private void winIncrement(string whatToIncrement)
|
||||
{
|
||||
// Increment the variables!
|
||||
switch (whatToIncrement)
|
||||
{
|
||||
case "rockDraw":
|
||||
cpuRockCount++;
|
||||
playerRockCount++;
|
||||
break;
|
||||
case "paperDraw":
|
||||
cpuPaperCount++;
|
||||
playerPaperCount++;
|
||||
break;
|
||||
case "scissorsDraw":
|
||||
cpuScissorsCount++;
|
||||
playerScissorsCount++;
|
||||
break;
|
||||
|
||||
case "cpuRock":
|
||||
cpuRockCount++;
|
||||
break;
|
||||
case "playerRock":
|
||||
playerRockCount++;
|
||||
break;
|
||||
|
||||
|
||||
case "cpuPaper":
|
||||
cpuPaperCount++;
|
||||
break;
|
||||
case "playerPaper":
|
||||
playerPaperCount++;
|
||||
break;
|
||||
|
||||
case "cpuScissors":
|
||||
cpuScissorsCount++;
|
||||
break;
|
||||
case "playerScissors":
|
||||
playerScissorsCount++;
|
||||
break;
|
||||
}
|
||||
updateTextBoxes();
|
||||
}
|
||||
private void endGame()
|
||||
{
|
||||
// Disable the interactivity of the images.
|
||||
@ -24,7 +79,7 @@ namespace RCS_CalebFontenot
|
||||
{
|
||||
case -1: //The Player is starting the game.
|
||||
Random rng = new Random();
|
||||
cpuAction = rng.Next(0, 2);
|
||||
cpuAction = rng.Next(0, 3);
|
||||
statusLabel.Text = "The computer has chosen a move. Please make yours.";
|
||||
// Clear the computer choice image.
|
||||
cpuMove.Visible = false;
|
||||
@ -34,18 +89,21 @@ namespace RCS_CalebFontenot
|
||||
{
|
||||
case 0:
|
||||
statusLabel.Text = "The computer has chosen rock. You chose rock as well. It is a draw.";
|
||||
winIncrement("rockDraw");
|
||||
cpuMove.Visible = true;
|
||||
cpuMove.Image = Properties.Resources.Mount_Rushmore;
|
||||
cpuMove.Image = Properties.Resources.Rock;
|
||||
break;
|
||||
case 1:
|
||||
statusLabel.Text = "The computer chose paper. You chose rock. The computer wins!";
|
||||
winIncrement("cpuPaper");
|
||||
cpuMove.Visible = true;
|
||||
cpuMove.Image = Properties.Resources.paper;
|
||||
cpuMove.Image = Properties.Resources.Paper;
|
||||
break;
|
||||
case 2:
|
||||
statusLabel.Text = "The computer chose scissors. You chose rock. You win!";
|
||||
winIncrement("playerScissors");
|
||||
cpuMove.Visible = true;
|
||||
cpuMove.Image = Properties.Resources.scissors;
|
||||
cpuMove.Image = Properties.Resources.Scissors;
|
||||
break;
|
||||
}
|
||||
endGame();
|
||||
@ -55,17 +113,20 @@ namespace RCS_CalebFontenot
|
||||
{
|
||||
case 0:
|
||||
statusLabel.Text = "The computer has chosen rock. You chose paper. You win!";
|
||||
winIncrement("cpuRock");
|
||||
cpuMove.Visible = true;
|
||||
cpuMove.Image = Properties.Resources.Mount_Rushmore;
|
||||
cpuMove.Image = Properties.Resources.Rock;
|
||||
break;
|
||||
case 1:
|
||||
statusLabel.Text = "The computer chose paper. You chose paper as well. It is a draw.";
|
||||
winIncrement("paperDraw");
|
||||
cpuMove.Visible = true;
|
||||
cpuMove.Image = Properties.Resources.paper;
|
||||
cpuMove.Image = Properties.Resources.Paper;
|
||||
break;
|
||||
case 2:
|
||||
statusLabel.Text = "The computer chose scissors. You chose paper. The computer wins!";
|
||||
cpuMove.Image = Properties.Resources.scissors;
|
||||
winIncrement("cpuScissors");
|
||||
cpuMove.Image = Properties.Resources.Scissors;
|
||||
cpuMove.Visible = true;
|
||||
break;
|
||||
}
|
||||
@ -77,17 +138,20 @@ namespace RCS_CalebFontenot
|
||||
{
|
||||
case 0:
|
||||
statusLabel.Text = "The computer has chosen rock. You chose scissors. The computer wins!";
|
||||
cpuMove.Image = Properties.Resources.Mount_Rushmore;
|
||||
winIncrement("cpuRock");
|
||||
cpuMove.Image = Properties.Resources.Rock;
|
||||
cpuMove.Visible = true;
|
||||
break;
|
||||
case 1:
|
||||
statusLabel.Text = "The computer chose paper. You chose scissors. You win!";
|
||||
cpuMove.Image = Properties.Resources.paper;
|
||||
winIncrement("playerScissors");
|
||||
cpuMove.Image = Properties.Resources.Paper;
|
||||
cpuMove.Visible = true;
|
||||
break;
|
||||
case 2:
|
||||
statusLabel.Text = "The computer chose scissors. You chose paper. The computer wins!";
|
||||
cpuMove.Image = Properties.Resources.scissors;
|
||||
statusLabel.Text = "The computer chose scissors. You chose scissors as well. It is a draw.";
|
||||
winIncrement("paperDraw");
|
||||
cpuMove.Image = Properties.Resources.Scissors;
|
||||
cpuMove.Visible = true;
|
||||
break;
|
||||
}
|
||||
@ -109,6 +173,18 @@ namespace RCS_CalebFontenot
|
||||
scissorPictureBox.Enabled = false;
|
||||
}
|
||||
|
||||
private void clearButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
cpuRockCount = 0;
|
||||
playerRockCount = 0;
|
||||
cpuScissorsCount = 0;
|
||||
playerScissorsCount = 0;
|
||||
cpuPaperCount = 0;
|
||||
playerPaperCount = 0;
|
||||
updateTextBoxes();
|
||||
|
||||
}
|
||||
|
||||
private void newGameButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Enable the images' interactivity.
|
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Any CPU</Platform>
|
||||
<PublishDir>bin\Release\net6.0-windows\publish\win-x64\</PublishDir>
|
||||
<PublishProtocol>FileSystem</PublishProtocol>
|
||||
<_TargetId>Folder</_TargetId>
|
||||
<TargetFramework>net6.0-windows</TargetFramework>
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<SelfContained>true</SelfContained>
|
||||
<PublishSingleFile>false</PublishSingleFile>
|
||||
<PublishReadyToRun>false</PublishReadyToRun>
|
||||
</PropertyGroup>
|
||||
</Project>
|
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<History>True|2022-11-17T01:06:41.3051445Z;</History>
|
||||
<LastFailureDetails />
|
||||
</PropertyGroup>
|
||||
</Project>
|
@ -63,9 +63,9 @@ namespace RCS_CalebFontenot.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Mount_Rushmore {
|
||||
internal static System.Drawing.Bitmap Paper {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Mount-Rushmore", resourceCulture);
|
||||
object obj = ResourceManager.GetObject("Paper", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
@ -73,9 +73,9 @@ namespace RCS_CalebFontenot.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap paper {
|
||||
internal static System.Drawing.Bitmap Rock {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("paper", resourceCulture);
|
||||
object obj = ResourceManager.GetObject("Rock", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
@ -83,9 +83,9 @@ namespace RCS_CalebFontenot.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap scissors {
|
||||
internal static System.Drawing.Bitmap Scissors {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("scissors", resourceCulture);
|
||||
object obj = ResourceManager.GetObject("Scissors", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
1
MP4/RPS_CalebFontenot/RCS_CalebFontenot/Properties/Resources.resx
Executable file
1
MP4/RPS_CalebFontenot/RCS_CalebFontenot/Properties/Resources.resx
Executable file
File diff suppressed because one or more lines are too long
@ -23,4 +23,9 @@
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\Resources\" />
|
||||
<Folder Include="Resources\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
11
MP4/RPS_CalebFontenot/RCS_CalebFontenot/RCS_CalebFontenot.csproj.user
Executable file
11
MP4/RPS_CalebFontenot/RCS_CalebFontenot/RCS_CalebFontenot.csproj.user
Executable file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<_LastSelectedProfileId>Z:\home\caleb\Documents\ASDV-C-Sharp\MP4\RPS_CalebFontenot\RCS_CalebFontenot\Properties\PublishProfiles\FolderProfile.pubxml</_LastSelectedProfileId>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Update="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
</Project>
|
BIN
MP4/RPS_CalebFontenot/RCS_CalebFontenot/Resources/Paper.bmp
Executable file
BIN
MP4/RPS_CalebFontenot/RCS_CalebFontenot/Resources/Paper.bmp
Executable file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
MP4/RPS_CalebFontenot/RCS_CalebFontenot/Resources/Rock.bmp
Executable file
BIN
MP4/RPS_CalebFontenot/RCS_CalebFontenot/Resources/Rock.bmp
Executable file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
MP4/RPS_CalebFontenot/RCS_CalebFontenot/Resources/Scissors.bmp
Executable file
BIN
MP4/RPS_CalebFontenot/RCS_CalebFontenot/Resources/Scissors.bmp
Executable file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
Binary file not shown.
@ -0,0 +1,23 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v6.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v6.0": {
|
||||
"RCS_CalebFontenot/1.0.0": {
|
||||
"runtime": {
|
||||
"RCS_CalebFontenot.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"RCS_CalebFontenot/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,18 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net6.0",
|
||||
"frameworks": [
|
||||
{
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "6.0.0"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.WindowsDesktop.App",
|
||||
"version": "6.0.0"
|
||||
}
|
||||
],
|
||||
"configProperties": {
|
||||
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,18 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net6.0",
|
||||
"includedFrameworks": [
|
||||
{
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "6.0.0"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.WindowsDesktop.App",
|
||||
"version": "6.0.0"
|
||||
}
|
||||
],
|
||||
"configProperties": {
|
||||
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user