Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
adc2018-system
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
adc2018
adc2018-system
Commits
5942a463
Commit
5942a463
authored
Aug 16, 2018
by
Kento HASEGAWA
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'comm-client' into 'comm'
Fix a little See merge request adc2018/adc2018-system!15
parents
4c07a92e
8b487b08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
main.py
comm/client/main.py
+3
-1
adc2018solver.py
solver/adc2018solver.py
+3
-3
No files found.
comm/client/main.py
View file @
5942a463
...
...
@@ -50,7 +50,9 @@ def start():
"client"
:
client_baseurl
,
"req_id"
:
request
.
form
[
'req_id'
],
"resolver"
:
request
.
form
[
'resolver'
]
}
}
print
(
option
[
'req_id'
])
pynqrouter
.
start_solver
(
boardstr
,
qseed
,
option
)
...
...
solver/adc2018solver.py
View file @
5942a463
...
...
@@ -99,7 +99,7 @@ def solve(boardstr, seed=12345, zero_padding=False, option=dict()):
solver_thread
.
stopped
()
solver_thread
=
None
if
"host"
in
option
:
requests
.
post
(
"http://{}/post"
.
format
(
option
[
'host'
]),
data
=
res
)
r
=
r
equests
.
post
(
"http://{}/post"
.
format
(
option
[
'host'
]),
data
=
res
)
return
res
# ボード文字列から X, Y, Z を読んでくる
...
...
@@ -149,7 +149,7 @@ def solve(boardstr, seed=12345, zero_padding=False, option=dict()):
solver_thread
.
stopped
()
solver_thread
=
None
if
"host"
in
option
:
requests
.
post
(
"http://{}/post"
.
format
(
option
[
'host'
]),
data
=
res
)
r
=
r
equests
.
post
(
"http://{}/post"
.
format
(
option
[
'host'
]),
data
=
res
)
return
res
# 完了の確認
...
...
@@ -168,7 +168,7 @@ def solve(boardstr, seed=12345, zero_padding=False, option=dict()):
mmio_led
.
write
(
0
,
0
)
sys
.
stderr
.
write
(
'Cannot solve it!
\n
'
)
if
"host"
in
option
:
requests
.
post
(
"http://{}/post"
.
format
(
option
[
'host'
]),
data
=
res
)
r
=
r
equests
.
post
(
"http://{}/post"
.
format
(
option
[
'host'
]),
data
=
res
)
solver_thread
=
None
return
res
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment