Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
b-inary committed Sep 30, 2023
1 parent 25373ce commit f3e2565
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
cargo build --release --features zstd
cargo +nightly build --release --features custom-alloc
cargo run --release --example basic
cargo run --release --example file_io
cargo run --release --example node_locking
- name: Run tests
run: |
cargo test --release --features zstd
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ license = "AGPL-3.0-or-later"
bincode = { version = "2.0.0-rc.3", optional = true }
once_cell = "1.18.0"
rayon = { version = "1.8.0", optional = true }
regex = "1.9.5"
regex = "1.9.6"
zstd = { version = "0.12.4", optional = true, default-features = false }

[features]
Expand Down
2 changes: 1 addition & 1 deletion examples/file_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fn main() {
solve(&mut game, max_num_iterations, target_exploitability, true);

// save the solved game tree to a file
// 4th argument is the zstd compression level (1-22); requires the `zstd` feature
// 4th argument is zstd compression level (1-22); requires `zstd` feature to use
save_data_to_file(&game, "memo string", "filename.bin", None).unwrap();

// load the solved game tree from a file
Expand Down
2 changes: 1 addition & 1 deletion examples/node_locking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn normal_node_locking() {
game.lock_current_strategy(&[0.25, 0.75]); // lock IP's strategy: 25% fold, 75% call
game.back_to_root();

solve(&mut game, 1000, 0.01, false);
solve(&mut game, 1000, 0.001, false);
game.cache_normalized_weights();

// check OOP's strategy
Expand Down
2 changes: 1 addition & 1 deletion src/card.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::mem;
#[cfg(feature = "bincode")]
use bincode::{Decode, Encode};

/// A type representing a card, defined as a `u8` number.
/// A type representing a card, defined as an alias of `u8`.
///
/// The correspondence between the card and its ID is defined as follows:
/// - `card_id = 4 * rank + suit` (where `0 <= card_id < 52`)
Expand Down

0 comments on commit f3e2565

Please sign in to comment.