Skip to content

Commit

Permalink
Make some functions public
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbergmark committed Aug 2, 2024
1 parent ee901e5 commit 26056b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sudoku.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ impl Default for Sudoku {

impl Sudoku {
#[inline(always)]
pub(crate) fn is_solved(&self) -> bool {
pub fn is_solved(&self) -> bool {
self.num_digits == consts::SIZE
}

#[inline]
pub(crate) fn place(&mut self, idx: usize, digit: consts::BitWidth) {
pub fn place(&mut self, idx: usize, digit: consts::BitWidth) {
self.digits[idx] = digit;
self.bitboard[idx] = 0;
self.num_digits += 1;
Expand Down

0 comments on commit 26056b9

Please sign in to comment.