Xinqi Bao's Git
projects
/
CheaterHub.git
/ blob
summary
|
log
|
commit
|
diff
|
tree
history
|
raw
|
HEAD
first commit, implemented game wordscapes
[CheaterHub.git]
/
server
/
wordscapes
/
test.cc
1
#include <iostream>
2
#include <string>
3
#include <vector>
4
5
#include
"wordscapes.h"
6
using namespace
std
;
7
8
int
main
()
9
{
10
Wordscapes ws
;
11
string given
,
search
;
12
cout
<<
"given:
\n
>> "
;
13
cin
>>
given
;
14
15
cout
<<
"
\n
search:
\n
>> "
;
16
while
(
cin
>>
search
)
17
{
18
auto
result
=
ws
.
solve
(
given
,
search
);
19
for
(
auto
&
res
:
result
)
cout
<<
res
<<
endl
;
20
21
cout
<<
"
\n
search:
\n
>> "
;
22
}
23
24
return
0
;
25
}