Skip to content

A roguelike solitaire card game built with Elm, showcasing Cursor AI's capabilities in functional programming projects

Notifications You must be signed in to change notification settings

nofate/elm-scoundrel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scoundrel

A roguelike solitaire card game built with Elm. This project was developed as an experiment to explore Cursor AI as a programming assistant.

Scoundrel Game

About

Scoundrel combines elements of solitaire card games with light roguelike mechanics. The development process was focused on using Cursor AI to assist with code generation, problem-solving, and implementation.

The game features a simple but engaging gameplay loop where you navigate through a dungeon by managing cards representing weapons, potions, and foes.

Technologies

  • Elm - A delightful language for reliable web applications
  • Cursor - AI-powered code editor
  • CSS for styling and visual effects
  • Custom drag and drop mechanics

Development Process

This project showcases the capabilities of AI-assisted development. Cursor was used to:

  • Generate initial code structures
  • Debug type issues in Elm
  • Implement game mechanics
  • Design the visual styling

The experiment demonstrates both the strengths and limitations of current AI coding tools when working with strongly typed functional languages like Elm.

Getting Started

Prerequisites

  • Elm (version 0.19.1 or later)
  • A modern web browser

Running the Game

  1. Clone this repository
  2. Navigate to the project directory
  3. Run elm reactor
  4. Open http://localhost:8000/src/Main.elm in your browser

Then open public/index.html in your browser.

How to Play

  • Draw cards from the deck to fill the room
  • Use potions to heal
  • Equip weapons to fight foes
  • Stack foes of lower rank on your weapon
  • Discard your weapon when you're done with it
  • Flee the room if you're in trouble (but you can only flee once)

The goal is to defeat all foes while managing your health.

Credits

The original Scoundrel game rules were authored by Zach Gage and Kurt Bieg. You can learn more about the original game at stfj.net.

This implementation is a tribute to their innovative design.

Building for Production

About

A roguelike solitaire card game built with Elm, showcasing Cursor AI's capabilities in functional programming projects

Topics

Resources

Stars

Watchers

Forks