mirror of https://github.com/dnomd343/klotski.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
510 B
22 lines
510 B
#pragma once
|
|
|
|
#include <iostream>
|
|
#include <vector>
|
|
|
|
class AllCases {
|
|
public:
|
|
AllCases() {
|
|
load_basic_ranges();
|
|
}
|
|
void find_all_cases();
|
|
std::vector<uint32_t> all_cases[16];
|
|
std::vector<uint32_t> basic_ranges;
|
|
|
|
static uint32_t binary_reverse(uint32_t bin);
|
|
static bool check_case(uint32_t head, uint32_t range);
|
|
|
|
private:
|
|
void load_basic_ranges();
|
|
void generate_ranges(int n1, int n2, int n3, int n4);
|
|
// static bool check_case(uint32_t head, uint32_t range);
|
|
};
|
|
|