My Project
ki2.h
Go to the documentation of this file.
1/* ki2.h
2 */
3
4#ifndef OSL_RECORD_KI2_H
5#define OSL_RECORD_KI2_H
6
7#include "osl/record/record.h"
9#include <string>
10#include <iosfwd>
11
12namespace osl
13{
14 namespace ki2
15 {
21 class Ki2File : public RecordFile
22 {
23 private:
24 bool verbose;
25 public:
26 Ki2File(const std::string& filename, bool verbose=false);
27
30 };
31 static ParseResult parseLine(NumEffectState&, Record&, KanjiMove&, std::string element);
32 };
33
34 const std::string show(Square);
35 const std::string show(Square cur, Square prev);
36 const std::string show(Ptype);
37 const std::string showPromote(bool);
38 const std::string show(Move move, const NumEffectState& state, Move prev=Move());
39 const std::string show(const Move *first, const Move *last, const NumEffectState& state, Move prev=Move());
40 const std::string show(const Move *first, const Move *last, const char *threatmate_first, const char *threatmate_last, const NumEffectState& state, Move prev=Move());
41 } // namespace ki2
42 using ki2::Ki2File;
43} // namespace osl
44
45#endif /* OSL_RECORD_KI2_H */
46// ;;; Local Variables:
47// ;;; mode:c++
48// ;;; c-basic-offset:2
49// ;;; End:
圧縮していない moveの表現 .
利きを持つ局面
「.ki2」という拡張子を持つ2ch形式ファイル.
Definition ki2.h:22
bool verbose
Definition ki2.h:24
static ParseResult parseLine(NumEffectState &, Record &, KanjiMove &, std::string element)
Definition ki2.cc:12
Parse kanji records such as "7六歩", the style of which is generally used to write Shogi records in Jap...
Definition kanjiMove.h:20
const std::string showPromote(bool)
Definition ki2.cc:155
const std::string show(Square)
Definition ki2.cc:133
Ptype
駒の種類を4ビットでコード化する
Definition basic_type.h:84