mirror of https://github.com/dnomd343/klotski.git
Dnomd343
2 years ago
5 changed files with 43 additions and 4 deletions
@ -0,0 +1,4 @@ |
|||||
|
cmake_minimum_required(VERSION 3.0) |
||||
|
|
||||
|
add_library(raw_code raw_code.cc) |
||||
|
target_link_libraries(raw_code common_code) |
@ -0,0 +1,5 @@ |
|||||
|
#include "raw_code.h" |
||||
|
|
||||
|
uint64_t RawCode::unwrap() const { // get raw uint64_t code
|
||||
|
return code; |
||||
|
} |
@ -0,0 +1,19 @@ |
|||||
|
#pragma once |
||||
|
|
||||
|
#include <cstdint> |
||||
|
#include "common_code.h" |
||||
|
|
||||
|
class RawCode { |
||||
|
public: |
||||
|
uint64_t unwrap() const; |
||||
|
std::string dump_case() const; |
||||
|
CommonCode to_common_code() const; |
||||
|
|
||||
|
RawCode(const CommonCode &common_code); |
||||
|
|
||||
|
explicit RawCode(uint64_t raw_code) : code(raw_code) {} |
||||
|
|
||||
|
private: |
||||
|
uint64_t code; |
||||
|
|
||||
|
}; |
Loading…
Reference in new issue