<%= render "games/header", game: @game, display_turn: @game.latest_turn, current_participant: @current_participant, hide_controls: true %>

外交・交渉掲示板

他国との秘密交渉や全体へのアナウンスを行います。

<%= link_to game_path(@game), class: "inline-flex items-center px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" do %> マップに戻る <% end %> <% if @game.status == 'in_progress' %> <%= link_to new_game_board_path(@game), class: "ml-3 inline-flex items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" do %> 新しい掲示板を作成 <% end %> <% end %>
<% if @game.status == 'finished' %>

このゲームは終了しています。すべての掲示板は履歴モード(閲覧専用)です。

<% end %>
    <% if @boards.empty? %>
  • 掲示板がありません
  • <% else %> <% @boards.each do |board| %>
  • <%= link_to game_board_path(@game, board), class: "block hover:bg-gray-50" do %>
    <% if board.global? %> 共通

    Global Board (全体掲示板)

    <% else %> 交渉

    <% members = board.participants.map(&:power).compact.sort %> <%= members.join(' / ') %>

    <% end %> <% if board.is_public? %> 公開中 <% end %>
    <% unread_count = board.unread_count_for(@current_participant) %> <% if unread_count > 0 %> <%= unread_count %> 未読 <% end %>

    <% last_post = board.board_posts.last %> <% if last_post %> <%= last_post.body.truncate(30) %> - <%= last_post.participant.power %> <% else %> 投稿なし <% end %>

    <% if last_post %>

    <%= time_ago_in_words(last_post.created_at) %>前

    <% else %>

    作成: <%= l board.created_at, format: :short %>

    <% end %>
    <% end %>
  • <% end %> <% end %>

外交関係マップ

交渉チャンネルを持つ国同士の繋がり(相互のみ表示)

<% @diplomacy_matrix.keys.sort.each do |power| %> <% end %> <% @diplomacy_matrix.keys.sort.each do |row_power| %> <% @diplomacy_matrix.keys.sort.each do |col_power| %> <% end %> <% end %>
<%= power[0..2] %>
<%= row_power[0..2] %> <% if row_power == col_power %> - <% elsif @diplomacy_matrix[row_power]&.include?(col_power) %> <% else %> <% end %>

※ あなたが参加している掲示板、または公開された掲示板の関係のみ表示されます。

交渉のヒント

  • 共通掲示板は全員が見ています。外交方針の発表に使いましょう。
  • 特定の国と密約を結ぶには「新しい掲示板を作成」から招待してください。
  • 交渉用掲示板の内容は、メンバー以外には秘密です(「公開」設定にしない限り)。