mirror of https://github.com/dnomd343/klotski.git
Dnomd343
2 years ago
5 changed files with 38 additions and 2 deletions
@ -0,0 +1,4 @@ |
|||||
|
cmake_minimum_required(VERSION 3.0) |
||||
|
set(CMAKE_CXX_STANDARD 14) |
||||
|
|
||||
|
add_executable(klotski main.cc all_cases.cc) |
@ -0,0 +1,9 @@ |
|||||
|
#include "all_cases.h" |
||||
|
|
||||
|
std::vector<uint32_t> AllCases::basic_ranges; |
||||
|
|
||||
|
void AllCases::build_basic_ranges() { |
||||
|
AllCases::basic_ranges.emplace_back(0); |
||||
|
AllCases::basic_ranges.emplace_back(1); |
||||
|
AllCases::basic_ranges.emplace_back(2); |
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
#pragma once |
||||
|
|
||||
|
#include <vector> |
||||
|
#include <cstdint> |
||||
|
|
||||
|
class AllCases { |
||||
|
public: |
||||
|
static std::vector<uint32_t> basic_ranges; |
||||
|
|
||||
|
static void build_basic_ranges(); |
||||
|
|
||||
|
}; |
@ -0,0 +1,11 @@ |
|||||
|
#include <iostream> |
||||
|
#include "all_cases.h" |
||||
|
|
||||
|
int main() { |
||||
|
|
||||
|
std::cout << AllCases::basic_ranges.size() << std::endl; |
||||
|
AllCases::build_basic_ranges(); |
||||
|
std::cout << AllCases::basic_ranges.size() << std::endl; |
||||
|
|
||||
|
return 0; |
||||
|
} |
Loading…
Reference in new issue