Code Monkey home page Code Monkey logo

project-network-programming-fun-game's Introduction

FunGame

Project Môn học thực hành lập trình mạng, được viết bằng C. FunGame gồm 2 game nhỏ là caro và tictactoe.Cả 2 trò chơi, người chơi sẽ chơi trực tiếp với máy.

Chức năng của Chương trình:

  • Đăng ký
  • Đăng nhập
  • Chơi game caro
  • Xem log (lịch sử chơi)
  • Xem bảng xếp hạng và thông tin người chơi game caro
  • Chơi game tictactoe
  • Xem bảng xếp hạng và thông tin người chơi game tictactoe

Công nghệ sử dụng:

  • Sử dụng thư viện termios.h để ẩn mật khẩu khi nhập
  • Sử dụng thuật toán Minimax trong game (dùng để máy đánh)
  • Kết nối bằng giao thức TCP
  • Nhiều client cùng kết nối với server sử dụng select()

Hướng dẫn cài đặt:

  1. Clone repo từ github.
  2. Mở Terminal và gõ make để biên dịch chương trình.
  3. Mở 2 cửa sổ Terminal, 1 cửa sổ là server, 1 cửa sổ là client.
  4. Với Server gõ lệnh: ./server PORT_NUMBER, ví dụ: ./server 5500
  5. Với Client gõ lệnh: ./client SERVER_ADDRESS PORT_NUBER, ví dụ: ./client 127.0.0.1 5500

Video demo và báo cáo

project-network-programming-fun-game's People

Contributors

nguyenvd27 avatar

Watchers

 avatar  avatar

Forkers

truongnm-3365

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.