Skip to content

Commit

Permalink
Flipped rank and suit encoding vectors. Closes #137
Browse files Browse the repository at this point in the history
  • Loading branch information
miselico committed Jan 31, 2025
1 parent ca0b3d9 commit 0d0f190
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/schnapsen/bots/ml_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ def get_move_feature_vector(move: Optional[Move]) -> list[int]:

if move is None:
move_type_one_hot_encoding_numpy_array = [0, 0, 0]
card_rank_one_hot_encoding_numpy_array = [0, 0, 0, 0]
card_suit_one_hot_encoding_numpy_array = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
card_rank_one_hot_encoding_numpy_array = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
card_suit_one_hot_encoding_numpy_array = [0, 0, 0, 0]

else:
move_type_one_hot_encoding: list[int]
Expand Down
2 changes: 1 addition & 1 deletion src/schnapsen/deck.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def get_card(rank: Rank, suit: Suit) -> Card:
"""
Get a Card for the provided Rank and Suit.
Internally, this uses a cache for effieciency and to prevent duplicate card objects.
Internally, this uses a cache for efficiency and to prevent duplicate card objects.
:param rank: (Rank): The rank of the card.
:param suit: (Suit): The suit of the card.
Expand Down

0 comments on commit 0d0f190

Please sign in to comment.