Giter Club home page Giter Club logo

tic-tac-toe-window-ubuntu-'s Introduction

tic-tac-toe-window-ubuntu:

using the bridged network of oracle virtual machine python (judge) runs on a real machine (windows), server and clients run on a ubuntu 20.04 (Oracle virtual machine) and communicate to each other through TCP/IP.

python (on real machine) communicates to server (on virtual machine) thorugh zmq

if you don't use my configuration (virtual machine) but 2 separate PCs, it also should work but make sure they are connected without any obstacle (i.e can ping IP or send thourgh socket)

also ensure the ports (for both server-clients and judge-server) are not locked by any anti virus

make sure you installed gcc (I use version 9.3) on the unbuntu-based virtual machine and python (3.7) on the real machine

install package of zmq on virtual machine: sudo apt-get install libzmq3-de

install zmq for python (from pip or whatever)

compile server: gcc -pthread -o server server.c -lzmq

compile client: gcc -pthread -o client client.c

how to run:

  1. on real machine, run python (tic_tac_toe.py)
  2. on virtual machine, cd to the directory of server, run server
  3. run 1st client
  4. run 2nd client
  5. play the game !!

see detail how to run at https://www.youtube.com/watch?v=J5eWpaGk2Sc

Thw judge in python is adopted and modified from https://medium.com/byte-tales/the-classic-tic-tac-toe-game-in-python-3-1427c68b8874

tic-tac-toe-window-ubuntu-'s People

Contributors

quangsonle avatar

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.