Skip to content

Conversation

Copy link

Copilot AI commented Nov 28, 2025

Browser-based golf game where players complete 9 par-3 holes with fewest strokes.

Features

  • 9 unique holes with varying layouts, water hazards, and sand bunkers
  • Physics-based gameplay - ball velocity, friction, boundary collision
  • Club selection - Driver/Iron/Wedge/Putter with different power multipliers
  • Power meter - timing-based hold-and-release mechanic
  • Aim control - angle adjustment relative to hole direction
  • Scoring - tracks strokes with golf terminology (Eagle, Birdie, Par, Bogey)

Structure

├── index.html      # Game page with canvas and controls
├── css/style.css   # Responsive UI styling
├── js/game.js      # Game logic, physics, rendering
└── README.md       # Documentation

Configuration

All game parameters centralized in CONFIG:

const CONFIG = {
    TOTAL_HOLES: 9,
    PAR_PER_HOLE: 3,
    FRICTION: 0.98,
    BUNKER_FRICTION: 0.92,
    MAX_SPEED: 15,
    MAX_HOLE_ENTRY_SPEED: 3,
    // ...
};

Screenshot

Par 3 Challenge Game

Original prompt

add code for the par 3 challenge game


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits November 28, 2025 16:39
Co-authored-by: devbooth1-ui <225049609+devbooth1-ui@users.noreply.github.com>
Co-authored-by: devbooth1-ui <225049609+devbooth1-ui@users.noreply.github.com>
Copilot AI changed the title [WIP] Add code for the par 3 challenge game Add Par 3 Challenge golf game Nov 28, 2025
Copilot AI requested a review from devbooth1-ui November 28, 2025 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants