MAINT: Apply pre-commit

Remove byte-order-marker pre-commit check as there would be
many adjustments necessary
This commit is contained in:
Martin Thoma
2022-03-05 09:29:23 +01:00
parent f5e33ae38f
commit e64fb6795c
536 changed files with 6267 additions and 5556 deletions

View File

@@ -55,7 +55,7 @@ namespace Batnum
/// <returns>A message to be displayed to the player</returns>
public string TakeTurn()
{
//Edge condition - can occur when minTake is more > 1
//Edge condition - can occur when minTake is more > 1
if (pileSize < minTake)
{
pileSize = 0;

View File

@@ -10,7 +10,7 @@ namespace Batnum
{
/// <summary>
/// Ask the user a question and expects a comma separated pair of numbers representing a number range in response
/// the range provided must have a maximum which is greater than the minimum
/// the range provided must have a maximum which is greater than the minimum
/// </summary>
/// <param name="question">The question to ask</param>
/// <param name="minimum">The minimum value expected</param>

View File

@@ -27,4 +27,3 @@ while (true)
}
}

View File

@@ -10,8 +10,8 @@
namespace Batnum.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
@@ -23,15 +23,15 @@ namespace Batnum.Properties {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
@@ -45,7 +45,7 @@ namespace Batnum.Properties {
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
@@ -59,7 +59,7 @@ namespace Batnum.Properties {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to COMPUTER TAKES {0} AND LEAVES {1}.
/// </summary>
@@ -68,7 +68,7 @@ namespace Batnum.Properties {
return ResourceManager.GetString("COMPTURN", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to COMPUTER TAKES {0} AND LOSES.
/// </summary>
@@ -77,7 +77,7 @@ namespace Batnum.Properties {
return ResourceManager.GetString("END_COMPLOSE", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to COMPUTER TAKES {0} AND WINS.
/// </summary>
@@ -86,7 +86,7 @@ namespace Batnum.Properties {
return ResourceManager.GetString("END_COMPWIN", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to ITS A DRAW, THERE ARE ONLY {0} PIECES LEFT.
/// </summary>
@@ -95,7 +95,7 @@ namespace Batnum.Properties {
return ResourceManager.GetString("END_DRAW", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to TOUGH LUCK, YOU LOSE..
/// </summary>
@@ -104,7 +104,7 @@ namespace Batnum.Properties {
return ResourceManager.GetString("END_PLAYERLOSE", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to CONGRATULATIONS, YOU WIN..
/// </summary>
@@ -113,7 +113,7 @@ namespace Batnum.Properties {
return ResourceManager.GetString("END_PLAYERWIN", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to BATNUM.
/// </summary>
@@ -122,7 +122,7 @@ namespace Batnum.Properties {
return ResourceManager.GetString("GAME_NAME", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to ILLEGAL MOVE, RENETER IT.
/// </summary>
@@ -131,7 +131,7 @@ namespace Batnum.Properties {
return ResourceManager.GetString("INPUT_ILLEGAL", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to YOUR MOVE ?.
/// </summary>
@@ -140,7 +140,7 @@ namespace Batnum.Properties {
return ResourceManager.GetString("INPUT_TURN", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to I TOLD YOU NOT TO USE ZERO! COMPUTER WINS BY FORFEIT..
/// </summary>
@@ -149,7 +149,7 @@ namespace Batnum.Properties {
return ResourceManager.GetString("INPUT_ZERO", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to CREATIVE COMPUTING MORRISTOWN, NEW JERSEY.
/// </summary>
@@ -158,7 +158,7 @@ namespace Batnum.Properties {
return ResourceManager.GetString("INTRO_HEADER", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to THIS PROGRAM IS A &apos;BATTLE&apos; OF NUMBERS GAME, WHERE THE COMPUTER IS YOUR OPPONENT.
/// </summary>
@@ -167,7 +167,7 @@ namespace Batnum.Properties {
return ResourceManager.GetString("INTRO_PART1", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to THE GAME STARTS WITH AN ASSUMED PILE OF OBJECTS. YOU AND YOUR OPPONENT ALTERNATELY REMOVE OBJECTS FROM THE PILE. WINNNING IS DEFINED IN ADVANCE AS TAKING THE LAST OBJECT OR NOT. YOU CAN ALSO SPECIFY SOME OTHER BEGINING CONDITIONS. DON&apos;T USER ZERO, HOWWEVER, IN PLAYING THE GAME..
/// </summary>
@@ -176,7 +176,7 @@ namespace Batnum.Properties {
return ResourceManager.GetString("INTRO_PART2", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to ENTER MIN AND MAX ?.
/// </summary>
@@ -185,7 +185,7 @@ namespace Batnum.Properties {
return ResourceManager.GetString("START_QUESTION_DRAWMINMAX", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to ENTER PILE SIZE ?.
/// </summary>
@@ -194,7 +194,7 @@ namespace Batnum.Properties {
return ResourceManager.GetString("START_QUESTION_PILESIZE", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to ENTER START OPTION - 1 COMPUTER FIRST, 2 YOU FIRST ?.
/// </summary>
@@ -203,7 +203,7 @@ namespace Batnum.Properties {
return ResourceManager.GetString("START_QUESTION_WHOSTARTS", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to ENTER WIN OPTION - 1 TO TAKE LAST, 2 TO AVOID LAST: ?.
/// </summary>

View File

@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
<!--
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
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>
@@ -26,36 +26,36 @@
<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
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
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
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
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
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
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
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
@@ -168,4 +168,4 @@
<data name="START_QUESTION_WINOPTION" xml:space="preserve">
<value>ENTER WIN OPTION - 1 TO TAKE LAST, 2 TO AVOID LAST: ?</value>
</data>
</root>
</root>

View File

@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
<!--
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
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>
@@ -26,36 +26,36 @@
<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
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
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
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
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
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
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
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
@@ -168,4 +168,4 @@
<data name="START_QUESTION_WINOPTION" xml:space="preserve">
<value>ENTRE LA CONDITION DE VICTOIRE - 1 PRENDRE LA DERNIERE PIECE, 2 EVITER LA DERNIERE PIECE ?</value>
</data>
</root>
</root>

View File

@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
<!--
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
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>
@@ -26,36 +26,36 @@
<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
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
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
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
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
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
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
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
@@ -168,4 +168,4 @@
<data name="START_QUESTION_WINOPTION" xml:space="preserve">
<value>ENTER WIN OPTION - 1 TO TAKE LAST, 2 TO AVOID LAST: ?</value>
</data>
</root>
</root>

View File

@@ -8,4 +8,3 @@ Functional changes from Original
- handle edge condition for end game where the minimum draw amount is greater than the number of items remaining in the pile
- Takes into account the width of the console
- Mulilingual Support (English/French currently)