Skip to content

Commit

Permalink
Make class eval a struct
Browse files Browse the repository at this point in the history
Correct a typo in a comment
  • Loading branch information
abulmo committed Feb 5, 2021
1 parent 388fdef commit 94ea911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eval.d
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import std.algorithm, std.range, std.stdio;

enum Score {mate = 30_000, low = -29_000, high = 29_000, big = 3_000}

/* Value: a pair of opening / engame score */
/* Value: a pair of opening / endgame score */
struct Value {
int opening;
int endgame;
Expand All @@ -28,7 +28,7 @@ struct Value {
}

/* Evaluation function */
final class Eval {
struct Eval {
struct Stack {
Value [Color.size] value;
int stage;
Expand Down

0 comments on commit 94ea911

Please sign in to comment.