GithubHelp home page GithubHelp logo

pretendyourexyzzyreborn's Introduction

Discontinued

This isn't a so great idea, but rewriting the old client is. See there for a glorified version of PYX.

PretendYoureXyzzyReborn

This is a clone of ajanata/PretendYoureXyzzy, but better.

This version of the game server can run on every platform that supports Java. It uses Websockets to communicate.

Get up and running

All you need is a machine with Java installed and a copy of the cards database of PYX (can be found in the repo).

Server

The server is command-line only. All you need to specify is the path of the cards database. To customize the settings look at the Config class. To run the packed JAR file:

java -jar pyx-server.jar --cards-db ./pyx.sqlite

By default the server will start on port 6969. To change it:

java -jar pyx-server.jar --cards-db ./pyx.sqlite --server-port 1234

Client

The client can be run either in command-line mode or in GUI mode.

Command-line mode

To start the client in command-line mode use the --console argument:

java -jar pyx-client.jar --console

The console mode is recommended for testing purposes only. The game is not playable on the console.

GUI mode

To play the game you would likely start the client in GUI mode. To do that you can execute the JAR like so:

java -jar pyx-client.jar

Once the client is started you'll be prompted to input a server address and a nickname. The server address will be something like this:

ws://localhost:9696/

Note the ws://, that's important as we are communicating over Websockets!

Admin

To login as an admin you need to know the admin code. The admin code is generated by the server every 60 seconds and it's outputted to the console. Admin has higher priority than a normal user therefore it can always login to the server (even if the server is full or if another user with the same username exists).

pretendyourexyzzyreborn's People

Contributors

devgianlu avatar

Watchers

James Cloos avatar  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.