Skip to content

Commit

Permalink
Fix grammar issues in comment
Browse files Browse the repository at this point in the history
Co-authored-by: Hiroki Kobayashi <[email protected]>
  • Loading branch information
na2hiro and koba-e964 authored Oct 13, 2023
1 parent 1a96943 commit 10f783c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/position.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::tables::{ATTACK_TABLE, BETWEEN_TABLE};
use crate::zobrist::{Key, ZOBRIST_TABLE};
use shogi_core::{Color, Hand, Move, Piece, PieceKind, Square};

/// Represents a state of the game with history. This provides an ability to do and undo moves.
/// Represents a state of the game with history. This provides the ability to do and undo moves.
#[derive(Debug, Clone)]
pub struct Position {
inner: PartialPosition,
Expand Down Expand Up @@ -339,7 +339,7 @@ struct State {
/// Zobrist hashes for (board ^ side, hand)
/// TODO: It seems it's always used by XOR-ing two keys. Can we only store a single XOR-ed key?
keys: (Key, Key),
/// Captured piece in the last move
/// Piece captured on the last move
captured: Option<Piece>,
/// Last moved piece
last_moved: Option<Piece>,
Expand Down

0 comments on commit 10f783c

Please sign in to comment.