[LIB-9] Delete garbage
[chesshog.git] / chesshog-hedgefish / src / main / java / org / hedgecode / chess / hedgefish / HedgefishEngine.java
1 /*
2  * Copyright (c) 2018. Developed by Hedgecode.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *   http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.hedgecode.chess.hedgefish;
18
19 import org.hedgecode.chess.uci.Engine;
20 import org.hedgecode.chess.uci.DebugMode;
21 import org.hedgecode.chess.uci.Transmitter;
22
23 /**
24  * Hedgefish UCI Engine.
25  *
26  * @author Dmitry Samoshin aka gotty
27  */
28 public class HedgefishEngine implements Engine {
29
30     private static final String HEDGEFISH_COPYIGHT = "Hedgefish 0.1 (c) 2018 Hedgecode, D.Samoshin aka gotty";
31
32     private Transmitter<HedgefishCommand> transmitter;
33
34     private DebugMode debugMode;
35
36     HedgefishEngine() {
37         transmitter = new HedgefishTransmitter();
38         debugMode = DebugMode.OFF;
39     }
40
41     public Transmitter<HedgefishCommand> transmitter() {
42         return transmitter;
43     }
44
45     public void command(HedgefishCommand command) {
46         transmitter.addCommand(command);
47     }
48
49
50     @Override
51     public void init() {
52
53     }
54
55     @Override
56     public void debug(DebugMode mode) {
57         debugMode = mode;
58     }
59
60     @Override
61     public void isReady() {
62
63     }
64
65     @Override
66     public void go() {
67
68     }
69
70     @Override
71     public void stop() {
72
73     }
74
75     @Override
76     public void ponderhit() {
77
78     }
79
80     @Override
81     public void quit() {
82         transmitter.stop();
83     }
84
85 }