ConnectFourBreak
Play ASCII Connect Four in a VS Code panel while you wait for Copilot or just want a break!
Features
- Play Connect Four against a simple AI (Minimax with alpha-beta pruning)
- ASCII board, keyboard/mouse friendly
- Works in any VS Code window
How to Run Locally (Development)
Install dependencies
npm install
Compile the extension
npm run compile
Launch the extension
- Press
F5 in VS Code (with this folder open) to open a new Extension Development Host window.
- In the new window, open the Command Palette (
Cmd+Shift+P or Ctrl+Shift+P ), type Connect Four: Start Game Break , and run the command.
Play!
- The Connect Four panel will open. Click the column buttons to drop your piece.
How to Test
- Run the test suite with:
npm test
- Lint the code with:
npm run lint
How to Package and Publish to the VS Code Marketplace
- Install vsce (VS Code Extension Manager):
npm install -g vsce
- Package your extension:
vsce package
This creates a .vsix file you can share or install manually.
- Publish to Marketplace:
Notes
- Make sure your code and assets are original or properly licensed before publishing.
- This extension is for VS Code, not a standalone app.
License
MIT (or your preferred license)
| |