mirror of https://github.com/dnomd343/klotski.git
Dnomd343
2 weeks ago
13 changed files with 72 additions and 40 deletions
@ -0,0 +1,25 @@ |
|||||
|
#pragma once |
||||
|
|
||||
|
#include "group/group.h" |
||||
|
|
||||
|
// TODO: move to `.cc` file
|
||||
|
using klotski::cases::AllCases; |
||||
|
using klotski::codec::CommonCode; |
||||
|
|
||||
|
// ----------------------------------------------------------------------------------------- //
|
||||
|
|
||||
|
// TODO: using global test helper
|
||||
|
|
||||
|
/// Get the type_id upper limit.
|
||||
|
uint32_t group_union_num(); |
||||
|
|
||||
|
/// Get the group_id upper limit.
|
||||
|
uint32_t group_num(uint32_t type_id); |
||||
|
|
||||
|
/// Get cases contained in the specified type_id.
|
||||
|
const std::vector<CommonCode>& group_union_cases(uint32_t type_id); |
||||
|
|
||||
|
/// Get cases contained in the specified type_id and group_id.
|
||||
|
const std::vector<CommonCode>& group_cases(uint32_t type_id, uint32_t group_id); |
||||
|
|
||||
|
// ----------------------------------------------------------------------------------------- //
|
@ -1,5 +1,7 @@ |
|||||
#include "cases.h" |
#include "cases.h" |
||||
|
|
||||
|
#include <algorithm> |
||||
|
|
||||
#include "helper/block_num.h" |
#include "helper/block_num.h" |
||||
|
|
||||
// TODO: multi-threads builder
|
// TODO: multi-threads builder
|
Loading…
Reference in new issue