Skip to content

Commit

Permalink
this.engine.halt() not needed here either (I think / hope / trust)
Browse files Browse the repository at this point in the history
  • Loading branch information
rooklift committed Mar 31, 2024
1 parent 0e5f3c0 commit 9722c1d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/modules/hub.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,6 @@ let hub_main_props = {

let want_to_go;

// want_to_go = Boolean(this.engine.desired) || this.playing_active_colour(); -- is a WRONG AND BAD TEST.
// Caused Issue 120. If playing vs the machine, but we click for it, this test gave the wrong outcome.

if ([PLAY_BLACK, PLAY_WHITE].includes(this.play_mode)) {
want_to_go = this.playing_active_colour();
} else {
Expand Down Expand Up @@ -696,7 +693,6 @@ let hub_main_props = {

if (policy_or_drunk && this.playing_active_colour()) {

this.engine.halt();
if (config.play_against_drunk) {
this.play_drunk_policy();
} else {
Expand Down

0 comments on commit 9722c1d

Please sign in to comment.