Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
christiannagel committed May 25, 2024
1 parent 533a115 commit af43847
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,13 @@
/// </summary>
/// <typeparam name="TField">The type for guesses.</typeparam>
/// <typeparam name="TResult">The type returned from the analysis.</typeparam>
public abstract class GameGuessAnalyzer<TField, TResult> : IGameGuessAnalyzer<TResult>
public abstract class GameGuessAnalyzer<TField, TResult>(IGame game, TField[] guesses, int moveNumber) : IGameGuessAnalyzer<TResult>
where TResult : struct
{
protected readonly IGame _game;
private readonly int _moveNumber;
protected readonly IGame _game = game;
private readonly int _moveNumber = moveNumber;

protected TField[] Guesses { get; private set; }

protected GameGuessAnalyzer(IGame game, TField[] guesses, int moveNumber)
{
_game = game;
Guesses = guesses;
_moveNumber = moveNumber;
}
protected TField[] Guesses { get; private set; } = guesses;

/// <summary>
/// Override this method to return the result of the guess analysis.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<PackageTags>
Codebreaker;CNinnovation;GameAnalyzers;
Codebreaker;CNinnovation;GameAnalyzers
</PackageTags>
<Description>
This library contains game analyzers for the Codebreaker app. Reference this library when creating a Codebreaker service.
Expand Down

0 comments on commit af43847

Please sign in to comment.