Giter Site home page Giter Site logo

joekur / gamenight Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 2.92 MB

Trying to make some multiplayer games with Elixir/Phoenix

Home Page: https://gamenight.lol

Elixir 48.87% CSS 3.60% JavaScript 2.18% HTML 2.54% TypeScript 36.00% SCSS 6.78% Procfile 0.02%

gamenight's Introduction

Gamenight

Quickstart

Run the Procfile (I use https://github.com/DarthSim/overmind, but you can use foreman):

$ overmind start
// OR $ foreman start

This runs docker-compose to boot postgres and run phoenix.

Alternatively, run each separately:

$ docker-compose up
$ mix phx.server
// OR for interactive console, $ iex -S phx.server

Visit localhost:4000

Playing with bots

Start the server in iex so you can run commands in the terminal $ iex -S phx.server

Game of Things:

# Starts a game with 4 bot players:
bots = Gamenight.GameOfThings.Bots.create_game(4)

# At this point you can join yourself, and start the game

# Fills in answers for all bot players:
Gamenight.GameOfThings.Bots.answer(bots)

# To have the current bot player make an answer, pass either
# 'true' for a correct guess or 'false' for an incorrect:
Gamenight.GameOfThings.Bots.take_turn(bots, true)

Telestrations:

# Starts a game with 4 bot players:
bots = Gamenight.Telestrations.Bots.create_game(4)

# At this point you can join yourself, and start the game
Gamenight.Telestrations.Bots.start_game(bots)

# Submits a "story" for each player:
Gamenight.Telestrations.Bots.write_stories(bots)

# Submits a "drawing" for each player:
Gamenight.Telestrations.Bots.draw_stories(bots)

Gamenight.Telestrations.Bots.step_forward_show_and_tell(bots)

gamenight's People

Contributors

dependabot[bot] avatar joekur avatar sneakingrocky avatar

Watchers

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