Skip to content

i-icc/territorial_setting_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

territorial_setting_game

tcp 通信を用いた課題

How About

  • A cui game that uses tcp communication.The winner is the one who expands his territory and takes more territory.

run environment

  • OS:macOS Big Sur
  • Python:Python 3.7.3

SetUp

$ git clone https://github.com/i-icc/territorial_setting_game.git
$ cd territorial_setting_game/main

How to

  • You need to set up a server first.
    • python cui_server.py
  • Next, please set up a client to play the game.
    • python cui_client.py
    • The screen will be in standby mode until another connection is made.
  あなたはプレイヤー 0 です。
  対戦相手を待っています...
  • I'll set up another client to fight against.
    • python cui_client.py
  • Then the number of times you can act and your mark will be displayed.
  • Next, the fields will be displayed.
  • ⛔ cannot be passed through.
  • When you move, the field will be painted.
  • Let's paint more fields!
移動できる回数 : 20
あなたは先手(1P)です。
you are 🥵
⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔
⛔⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⛔
⛔⬜🥶⬜⬜⬜⛔⬜⬜⛔⬜⬜⬜⬜⛔⬜⬜⛔⬜⬜⬜⛔⬜⛔
⛔⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⛔
⛔⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⛔⬜⬜⛔⬜⬜⬜⛔⬜⬜⬜⛔
⛔⬜⛔⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⛔⛔
⛔⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⬜⛔
⛔⬜⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⛔
⛔⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⛔⬜⛔
⛔⛔⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⛔
⛔⬜⬜⛔⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⛔
⛔⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⛔⬜⬜⛔⬜⬜⛔
⛔⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🥵⬜⛔
⛔⬜⬜⬜⛔⬜⬜⬜⬜⬜⛔⬜⬜⬜⛔⬜⬜⬜⬜⛔⬜⬜⬜⛔
⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔
あと 20 回行動できます。
行動してください(u:up d:down r:right l:left):u
⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔
⛔⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⛔
⛔⬜🥶⬜⬜⬜⛔⬜⬜⛔⬜⬜⬜⬜⛔⬜⬜⛔⬜⬜⬜⛔⬜⛔
⛔⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⛔
⛔⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⛔⬜⬜⛔⬜⬜⬜⛔⬜⬜⬜⛔
⛔⬜⛔⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⛔⛔
⛔⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⬜⛔
⛔⬜⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⛔
⛔⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⛔⬜⛔
⛔⛔⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜🥵⬜⛔
⛔⬜⬜⛔⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜🟥⬜⛔
⛔⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⛔⬜⬜⛔🟥⬜⛔
⛔⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🟥⬜⛔
⛔⬜⬜⬜⛔⬜⬜⬜⬜⬜⛔⬜⬜⬜⛔⬜⬜⬜⬜⛔⬜⬜⬜⛔
⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔
相手の行動を待っています。
⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔
⛔⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⛔
⛔🥶🟦⬜⬜⬜⛔⬜⬜⛔⬜⬜⬜⬜⛔⬜⬜⛔⬜⬜⬜⛔⬜⛔
⛔⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⛔
⛔⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⛔⬜⬜⛔⬜⬜⬜⛔⬜⬜⬜⛔
⛔⬜⛔⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⛔⛔
⛔⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⬜⛔
⛔⬜⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⛔
⛔⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⛔⬜⛔
⛔⛔⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⛔⬜⬜🥵⬜⛔
⛔⬜⬜⛔⬜⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜🟥⬜⛔
⛔⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⬜⛔⬜⬜⬜⬜⛔⬜⬜⛔🟥⬜⛔
⛔⬜⛔⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🟥⬜⛔
⛔⬜⬜⬜⛔⬜⬜⬜⬜⬜⛔⬜⬜⬜⛔⬜⬜⬜⬜⛔⬜⬜⬜⛔
⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔
相手の行動を待っています。
⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔
⛔⬜⬜⬜⛔🟦🟦🟦🟦🟥🟥🟥🟥🟥🟥🟥🟥🟥⛔⬜⬜⬜⬜⛔
⛔🟦🟦⬜⬜🟦⛔⬜🟦⛔⬜⬜⬜⬜⛔⬜⬜⛔⬜⬜⬜⛔⬜⛔
⛔🟦⬜⛔🟥🟦🟥🟥🟦🟥🟥🟥🟥🟥🟥⬜⬜⬜⬜⬜⬜⬜⬜⛔
⛔🟦⬜🟦🟥🟦🟦⛔🟦⬜⬜⬜⛔⬜🟥⛔⬜⬜⬜⛔⬜⬜⬜⛔
⛔🟦⛔🟦🟥🟦🟦🟦🟦🟦⛔⬜⬜⬜🟥⬜⛔⬜⬜⬜⬜⬜⛔⛔
⛔🟦⬜🟦🟥⛔🟦🟦🟦🟦🟦🟦🟦⛔🟥🟥🟥🟥🟥🟥🟥🟥🟥⛔
⛔🟦⬜🟦🟥🟦🟦🟦🟦⛔⬜⬜🟦⬜⬜⬜⬜⬜⛔⬜⬜⬜🟥⛔
⛔🟦🟦🟦⛔🟦🟦⬜⬜⬜⬜⬜🟦⬜⛔⬜⬜⬜⬜⬜⬜⛔🟥⛔
⛔⛔⬜⬜⬜🟦🟦⛔⬜⬜⬜⬜🟦⬜⬜⬜⬜⬜⛔⬜⬜🟥🟥⛔
⛔⬜⬜⛔⬜🟦🟦🟦🟦🟦⛔⬜🥶🟥🟥⛔⬜⬜⬜⬜⬜🟥⬜⛔
⛔⬜⬜⬜⬜🟦⛔⬜⬜🟦⬜⬜⛔⬜🟥⬜⬜⛔⬜⬜⛔🟥⬜⛔
⛔⬜⛔⬜⬜🟦⬜⬜⬜🟦⬜⬜⬜⬜🟥🟥🟥🟥🟥🟥🟥🟥🥵⛔
⛔⬜⬜⬜⛔🟦🟦🟦🟦🟦⛔⬜⬜⬜⛔⬜⬜⬜⬜⛔⬜⬜⬜⛔
⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔
あと 1 回行動できます。
行動してください(u:up d:down r:right l:left):l
⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔
⛔⬜⬜⬜⛔🟦🟦🟦🟦🟥🟥🟥🟥🟥🟥🟥🟥🟥⛔⬜⬜⬜⬜⛔
⛔🟦🟦⬜⬜🟦⛔⬜🟦⛔⬜⬜⬜⬜⛔⬜⬜⛔⬜⬜⬜⛔⬜⛔
⛔🟦⬜⛔🟥🟦🟥🟥🟦🟥🟥🟥🟥🟥🟥⬜⬜⬜⬜⬜⬜⬜⬜⛔
⛔🟦⬜🟦🟥🟦🟦⛔🟦⬜⬜⬜⛔⬜🟥⛔⬜⬜⬜⛔⬜⬜⬜⛔
⛔🟦⛔🟦🟥🟦🟦🟦🟦🟦⛔⬜⬜⬜🟥⬜⛔⬜⬜⬜⬜⬜⛔⛔
⛔🟦⬜🟦🟥⛔🟦🟦🟦🟦🟦🟦🟦⛔🟥🟥🟥🟥🟥🟥🟥🟥🟥⛔
⛔🟦⬜🟦🟥🟦🟦🟦🟦⛔⬜⬜🟦⬜⬜⬜⬜⬜⛔⬜⬜⬜🟥⛔
⛔🟦🟦🟦⛔🟦🟦⬜⬜⬜⬜⬜🟦⬜⛔⬜⬜⬜⬜⬜⬜⛔🟥⛔
⛔⛔⬜⬜⬜🟦🟦⛔⬜⬜⬜⬜🟦⬜⬜⬜⬜⬜⛔⬜⬜🟥🟥⛔
⛔⬜⬜⛔⬜🟦🟦🟦🟦🟦⛔⬜🥶🟥🟥⛔⬜⬜⬜⬜⬜🟥⬜⛔
⛔⬜⬜⬜⬜🟦⛔⬜⬜🟦⬜⬜⛔⬜🟥⬜⬜⛔⬜⬜⛔🟥⬜⛔
⛔⬜⛔🥵🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥⛔
⛔⬜⬜⬜⛔🟦🟦🟦🟦🟦⛔⬜⬜⬜⛔⬜⬜⬜⬜⛔⬜⬜⬜⛔
⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔
相手の行動を待っています。
ゲームは終了しました。
最終場面
⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔
⛔⬜⬜⬜⛔🟦🟦🟦🟦🟥🟥🟥🟥🟥🟥🟥🟥🟥⛔⬜⬜⬜⬜⛔
⛔🟦🟦⬜⬜🟦⛔⬜🟦⛔⬜⬜⬜⬜⛔⬜⬜⛔⬜⬜⬜⛔⬜⛔
⛔🟦⬜⛔🟥🟦🟥🟥🟦🟥🟥🟥🟥🟥🟥⬜⬜⬜⬜⬜⬜⬜⬜⛔
⛔🟦⬜🟦🟥🟦🟦⛔🟦⬜⬜⬜⛔⬜🟥⛔⬜⬜⬜⛔⬜⬜⬜⛔
⛔🟦⛔🟦🟥🟦🟦🟦🟦🟦⛔⬜⬜⬜🟥⬜⛔⬜⬜⬜⬜⬜⛔⛔
⛔🟦⬜🟦🟥⛔🟦🟦🟦🟦🟦🟦🟦⛔🟥🟥🟥🟥🟥🟥🟥🟥🟥⛔
⛔🟦⬜🟦🟥🟦🟦🟦🟦⛔⬜⬜🟦⬜⬜⬜⬜⬜⛔⬜⬜⬜🟥⛔
⛔🟦🟦🟦⛔🟦🟦⬜⬜⬜⬜⬜🟦⬜⛔⬜⬜⬜⬜⬜⬜⛔🟥⛔
⛔⛔⬜⬜⬜🟦🟦⛔⬜⬜⬜⬜🟦⬜⬜⬜⬜⬜⛔⬜⬜🟥🟥⛔
⛔⬜⬜⛔⬜🟦🟦🟦🟦🟦⛔🥶🟦🟥🟥⛔⬜⬜⬜⬜⬜🟥⬜⛔
⛔⬜⬜⬜⬜🟦⛔⬜⬜🟦⬜⬜⛔⬜🟥⬜⬜⛔⬜⬜⛔🟥⬜⛔
⛔⬜⛔🥵🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥⛔
⛔⬜⬜⬜⛔🟦🟦🟦🟦🟦⛔⬜⬜⬜⛔⬜⬜⬜⬜⛔⬜⬜⬜⛔
⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔⛔
Score
1P : 2P
61 : 61
you draw

About

tcp 通信練習

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages