flip7
v3.0.0
Published
A CLI-based multiplayer card game built on the rules of **Flip 7**. Play locally or across machines by joining a host using IP and secret authentication.
Downloads
68
Readme
🎮 flip7
A CLI-based multiplayer card game built on the rules of Flip 7. Play locally or across machines by joining a host using IP and secret authentication.
Based on the official Flip 7 Rules
📦 Installation
npm install -g flip7@latestOr use directly with npx:
npx flip7🧠 Commands
flip7
Shows available commands.
flip7Output:
Available commands:
flip7 newGame: start a new game
flip7 join: join a new gameflip7 newGame
Start a new game. You'll be prompted to enter your name, a secret code, and host IP (typically localhost).
flip7 newGameflip7 join
Join an existing game by entering the same credentials used in newGame.
flip7 joinYou will be prompted to enter:
- Your name
- Secret code
- Host IP (of the game host)
🎮 Game Actions
Once it’s your turn, you will be prompted:
Available commands: hit, freeze, choose <player>, info, exithit: Draws a card.freeze: Ends your turn.choose <player>: Choose a player to perform an action.exit: Exits the game.
📍 Roadmap
- [ ] Multiplayer over WebSockets
- [ ] Improved CLI visuals
🪪 License
MIT © Amar N.
