• R/O
  • HTTP
  • SSH
  • HTTPS

shogi-server:

shogi-server source


File Info

Rev. b4af8394df436d7b273c27d245465efe3f1e51ed
Size 544 bytes
Time 2020-12-06 18:37:55
Author Daigo Moriwaki
Log Message

[shogi-server] Bump up the revision to 20201206

Content

$:.unshift File.join(File.dirname(__FILE__), "..")
$topdir = File.expand_path File.dirname(__FILE__)
require "test/baseclient"
include Socket::Constants

# This game has more thatn 256 moves.
# Disableing max-moves, "./shogi-server --max moves 0", is required.

class JishogiTest < ReadFileClient
  def test_jishogi_kachi
    csa = File.open(filepath("jishogi_kachi.csa")) {|f| f.read}
    handshake(csa)
    @p2.puts "%KACHI"
    @p1.wait(/#JISHOGI\n#LOSE/)
    @p2.wait(/#JISHOGI\n#WIN/)
    assert true
    logout12
  end
end # Client class
Show on old repository browser