printf("敗北したプレイヤーを入力してください>>");
na = gets;
while (x != 1) do
if player[b].name == na
x = 1
elsif player[b] == nil
printf("プレイヤーが見つかりませんでした");
x = 1
else
b += 1
end
end
player[b].mat += 1
player[b].lose += 1
tmp = player[a].rate
player[a].rate = elo(player[a].rate, player[b].rate, 1)
player[b].rate = elo(player[b].rate, tmp, 0)
printf("%d\n", player[a].rate)
printf("%d\n", player[b].rate)
printf("%d %d %d", player[a].mat, player[a].win, player[a].lose )
printf("%d %d %d", player[b].mat, player[b].win, player[b].lose )
printf("続けますか?\nYes >> 0 No>> 1");
g = gets.to_i;
end