ClemaX

joined 2 years ago
[–] [email protected] 2 points 1 year ago

I think the command pattern would be useful. The user requests to perform a command. The command implementation can define preconditions and actions that mutate your game state.

[–] [email protected] 4 points 1 year ago (2 children)

You could start with a multiplayer server that handles the game logic, and a command line client that that can interact with it, create a game room and invite someone to it. You can handle realtime communication with socket.io. Once you have the client and some game rules, you can implement the client on a frontend using a canvas or game engine. You could then add the bot opponents using simple random number generation and some basic strategies.

[–] [email protected] 1 points 1 year ago

Refactor package structure

[–] [email protected] 3 points 1 year ago

Files could be decrypted by the end user. The OS itself could remain unencrypted.

[–] [email protected] 2 points 1 year ago (1 children)

You could try organic maps.

[–] [email protected] 4 points 1 year ago (2 children)

We growing wiser, or are we just growing tall?

  • Damian Marley
[–] [email protected] 10 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago

Nginx is pretty easy to set up. Look up "nginx virtual hosts". You might want to use certbot/acme if you don't have SSL certificates for your domain names. You need either a wildcard certificate (*.example.com), a certificate with SAN (Subject Alternative Name) containing the second subdomain, or two certificates (one for each subdomain). Note that subdomains can be found more easily than path based websites, if you allow connections from the whole WAN.

[–] [email protected] 4 points 1 year ago

Try this:

for file in ./*
do
    echo "$file"
done

To do some substitution operation om the filename you can use Bash Parameter Expansion.

[–] [email protected] 4 points 1 year ago

Rumors say there are some platforms selling grow-kits including everything needed to get started. In Europe, people recommend some platform starting with Zam and ending with nesia, which supposedly provide a variety of kits.

You can also find plenty of resources online to start from scratch. The easiest seems to be the uncle bens method.

view more: ‹ prev next ›