Working on a LAN based Web Server for a CAH clone

This forum is specifically for discussing non-Mafia games
(board, card, video, we're not picky)
.
Playing
such games should happen in the Mish Mash forum, of course.
User avatar
Flubbernugget
Flubbernugget
Survivor
User avatar
User avatar
Flubbernugget
Survivor
Survivor
Posts: 11751
Joined: June 26, 2014

Working on a LAN based Web Server for a CAH clone

Post Post #0 (isolation #0) » Tue Dec 19, 2017 4:27 am

Post by Flubbernugget »

I've been working on a project for the sake of learning express/node.js and I'm wondering if anyone would have interest in it.

The idea is that someone on a local network would be able to broadcast a web server and have people connect to it with a web browser.

For simplicity's sake the first game I'm working on is a cards against humanity knockoff where the players write in their own answers instead of providing ones from cards. Once I work out all the bugs my next step would be to harden the server and make the interface user friendly. Afterwards, I think the next obvious choice would be to have a server that can moderate a mafia game where players can use a laptop/cell phone to draw their cards.

I'm looking for any thoughts or ideas of games that might be fun to play this way, what you would expect a user interface to look like for an idea like this, and any resources may have for secure web development.

I'll post pictures of my work when I am able to.

EDIT: There's no way I can handle more than one game with a single code base the way I imagined so I updated the thread title to reflect the current state of this project.
Last edited by Flubbernugget on Tue Jun 18, 2019 2:30 pm, edited 2 times in total.
User avatar
Flubbernugget
Flubbernugget
Survivor
User avatar
User avatar
Flubbernugget
Survivor
Survivor
Posts: 11751
Joined: June 26, 2014

Post Post #2 (isolation #1) » Mon Jan 01, 2018 9:08 am

Post by Flubbernugget »

Right now I'm just looking to get a game up and running that my family can play from their cell phones.

In the ideal future, I would want game logic to be hot pluggable into the infrastructure via configuration files (bonus points if the configs can be done with a gui). I may have to relax this idea to a code API. Once I unravel the route spaghetti I seem to have woven myself I'll have a better idea of what is actually approachable.
User avatar
Flubbernugget
Flubbernugget
Survivor
User avatar
User avatar
Flubbernugget
Survivor
Survivor
Posts: 11751
Joined: June 26, 2014

Post Post #6 (isolation #2) » Tue Jun 18, 2019 2:23 pm

Post by Flubbernugget »

How's this for a bump??

Took a lot more man hours than expected and had to wait till I graduated college to put them in but here's some code.

https://github.com/rmbern/cah-clone

Right now the server has to be ran on Linux because it's dependent on docker which only runs on Windows 10 professional. I don't have a license for Win10 pro, and it isn't likely to just be running on someone's personal laptop anyway. You also kinda need to know the basics of git, Linux, and networking to run it.

The game is strictly a CAH variant where the users input their own answers instead of playing cards with answers already filled in. There's about 25-ish questions the game will ask and if you play through them all I'm not sure what happens but hopefully the server just crashes without a lot of drama.

Overall the project is in pretty rough shape but it's better to share now than never!

Oh and it's in flask instead of nodejs like the OP says because fuck javascript.

---

I'm also going to drop a bit of a todo list here for myself because my mind feels up to it:

-> Remove the docker dependency and make the server runnable on windows with a few clicks.
-> Allow the addition and removal of new questions into the server database.
-> Clean up the FUGLY front end web pages.
-> Get rid of all the TODO comments I have littered throughout my code.
-> Add docstrings to all routes/functions.
-> Preserve sessions with cookies so closing a web browser doesn't damage the integrity of the game.
Post Reply

Return to “The Arcade”