Skip to content

paulpeng-popo/online-tetris-battle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Online Tetris Battle

Network programing final term project

  • Prerequisite

    • python 3.9 (or above)
    • pygame 2.1.2
  • Install package

    pip install -r requirements.txt && cd src
  • Execute (Server side)

    python3 GameServer.py
  • Execute (Client side)

    python3 Tetris.py

Game Introduction

Custom Ip Server

  • Just edit the ip address and port in ip_port.txt, then you can build your own servre
  • Support VPN connection

Socket 連線

  • Concurrent Server
  • Server-Client 一對二
  • Waiting room
  • Clients 間同步傳遞資訊
  • 結束連線

主遊戲

  • Blocks 陣列
  • 隨機亂數
  • Time 無窮迴圈
  • 方向鍵控制 (左、右、下)
  • 消除判定
  • 旋轉功能
  • 空白鍵快速落下
  • 方塊保留鍵
  • 集氣條+對手生成灰色方塊
  • 分數
  • 計時
  • 結束判定

GUI

  • 主封面、進入遊戲介面
  • 遊戲操作介紹
  • 等待室介面、對手資訊
  • 主遊戲介面框設計
  • 結算畫面

About

Network Programming Final Term Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages