Skip to content

Commit

Permalink
Updating
Browse files Browse the repository at this point in the history
  • Loading branch information
Pauan committed Aug 8, 2021
1 parent e71516c commit f20b175
Show file tree
Hide file tree
Showing 72 changed files with 643 additions and 634 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified Cargo.lock
100644 → 100755
Empty file.
Empty file modified Cargo.toml
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified algorithm/Cargo.toml
100644 → 100755
Empty file.
Empty file modified algorithm/src/bin/migrate/main.rs
100644 → 100755
Empty file.
Empty file modified algorithm/src/genetic.rs
100644 → 100755
Empty file.
Empty file modified algorithm/src/glicko.rs
100644 → 100755
Empty file.
Empty file modified algorithm/src/lib.rs
100644 → 100755
Empty file.
Empty file modified algorithm/src/main.rs
100644 → 100755
Empty file.
Empty file modified algorithm/src/random.rs
100644 → 100755
Empty file.
Empty file modified algorithm/src/record.rs
100644 → 100755
Empty file.
Empty file modified algorithm/src/simulation.rs
100644 → 100755
Empty file.
Empty file modified algorithm/src/strategy.rs
100644 → 100755
Empty file.
Empty file modified algorithm/src/types.rs
100644 → 100755
Empty file.
Empty file modified bin/process-records/.gitignore
100644 → 100755
Empty file.
Empty file modified bin/process-records/Cargo.toml
100644 → 100755
Empty file.
Empty file modified bin/process-records/src/main.rs
100644 → 100755
Empty file.
Empty file modified package.json
100644 → 100755
Empty file.
Empty file modified rollup.config.js
100644 → 100755
Empty file.
Empty file modified src/api.rs
100644 → 100755
Empty file.
Empty file modified src/background/Cargo.toml
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions src/background/src/lib.rs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ pub async fn main_js() -> Result<(), JsValue> {
"records/SaltyBet Records 3.json",
"records/SaltyBet Records 4.json",
"records/SaltyBet Records 5.json",
"records/SaltyBet Records 6.json",
]);

let (old_records, new_records) = try_join(old_records, new_records).await?;
Expand Down
Empty file modified src/chart/Cargo.toml
100644 → 100755
Empty file.
Empty file modified src/chart/src/lib.rs
100644 → 100755
Empty file.
Empty file modified src/indexeddb.rs
100644 → 100755
Empty file.
Empty file modified src/lib.rs
100644 → 100755
Empty file.
Empty file modified src/macros.rs
100644 → 100755
Empty file.
Empty file modified src/popup/Cargo.toml
100644 → 100755
Empty file.
Empty file modified src/popup/src/lib.rs
100644 → 100755
Empty file.
Empty file modified src/records/Cargo.toml
100644 → 100755
Empty file.
Empty file modified src/records/src/lib.rs
100644 → 100755
Empty file.
Empty file modified src/regexp.rs
100644 → 100755
Empty file.
Empty file modified src/saltybet/Cargo.toml
100644 → 100755
Empty file.
15 changes: 11 additions & 4 deletions src/saltybet/src/lib.rs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,20 @@ fn lookup_bet(state: &Rc<RefCell<State>>) {

match bet {
Bet::Left(amount) => {
if !amount.is_nan() {
if amount.is_nan() {
server_log!("Invalid bet: {:#?} {} {:#?}", current_balance, in_tournament, open);

} else {
wager_box.set_value(&amount.to_string());
click(&left_button);
return Some(());
}
},
Bet::Right(amount) => {
if !amount.is_nan() {
if amount.is_nan() {
server_log!("Invalid bet: {:#?} {} {:#?}", current_balance, in_tournament, open);

} else {
wager_box.set_value(&amount.to_string());
click(&right_button);
return Some(());
Expand All @@ -168,9 +174,10 @@ fn lookup_bet(state: &Rc<RefCell<State>>) {
return Some(());
},
}
}

server_log!("Invalid state: {:#?} {:#?} {:#?} {:#?} {:#?}", current_balance, open, left_name, right_name, in_tournament);
} else {
server_log!("Invalid state: {:#?} {:#?} {:#?} {:#?} {:#?}", current_balance, open, left_name, right_name, in_tournament);
}
}

None
Expand Down
Empty file modified src/twitch_chat/Cargo.toml
100644 → 100755
Empty file.
Empty file modified src/twitch_chat/src/lib.rs
100644 → 100755
Empty file.
Empty file modified static/background.html
100644 → 100755
Empty file.
Empty file modified static/chart.html
100644 → 100755
Empty file.
Empty file modified static/icons/eye-blocked.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified static/icons/eye.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/js/assets/background.wasm
Binary file not shown.
Binary file modified static/js/assets/chart.wasm
Binary file not shown.
Binary file modified static/js/assets/popup.wasm
Binary file not shown.
Binary file modified static/js/assets/records.wasm
Binary file not shown.
Binary file modified static/js/assets/saltybet.wasm
Binary file not shown.
Binary file modified static/js/assets/twitch-chat.wasm
Binary file not shown.
Loading

0 comments on commit f20b175

Please sign in to comment.