Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Dec 31, 2024
1 parent 4c2ea95 commit 9872516
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/tablebase.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::{
cmp::{max /*, Reverse */},
cmp::{max, Reverse},
ffi::OsStr,
fmt, io,
path::{Path, PathBuf},
Expand All @@ -9,7 +9,7 @@ use std::{
/* use arrayvec::ArrayVec; */
use async_lock::OnceCell;
use rustc_hash::FxHashMap;
use shakmaty::{/*Move,*/ Position, Role};
use shakmaty::{Move, Position, Role};

use crate::{
errors::{ProbeResultExt as _, SyzygyError, SyzygyResult},
Expand Down Expand Up @@ -284,7 +284,6 @@ impl<S: Position + Clone + Syzygy> Tablebase<S> {
self.probe(pos).await?.dtz().await
}

/*
/// Get the recommended tablebase move.
///
/// Following the tablebase mainline *starting from a capture or pawn move*
Expand All @@ -299,8 +298,9 @@ impl<S: Position + Clone + Syzygy> Tablebase<S> {
/// # Errors
///
/// See [`SyzygyError`] for possible error conditions.
pub fn best_move(&self, pos: &S) -> SyzygyResult<Option<(Move, MaybeRounded<Dtz>)>> {
struct WithAfter<S> {
pub async fn best_move(&self, pos: &S) -> SyzygyResult<Option<(Move, MaybeRounded<Dtz>)>> {
todo!()
/* struct WithAfter<S> {
m: Move,
after: S,
}
Expand Down Expand Up @@ -373,7 +373,8 @@ impl<S: Position + Clone + Syzygy> Tablebase<S> {
)
})
.map(|m| (m.m, m.dtz)))
} */
*/
}

async fn probe<'a>(&'a self, pos: &'a S) -> SyzygyResult<WdlEntry<'a, S>> {
// Probing resolves captures, so sometimes we can obtain results
Expand Down

0 comments on commit 9872516

Please sign in to comment.