GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: Update error message for Salad field in rules engine · software-challenge/player_python@1c59258

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/plugin
    • rules_engine.rs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/plugin/rules_engine.rs‎

Copy file name to clipboardExpand all lines: src/plugin/rules_engine.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl RulesEngine {
110110
match field {
111111
Field::Hedgehog => Err(HUIError::new_err("Cannot advance on Hedgehog field")),
112112
Field::Salad if player.salads > 0 => Ok(()),
113-
Field::Salad => Err(HUIError::new_err("Field is occupied by opponent")),
113+
Field::Salad => Err(HUIError::new_err("No salad to eat")),
114114
Field::Hare if !cards.is_empty() => Ok(()),
115115
Field::Hare => Err(HUIError::new_err("No card to play")),
116116
Field::Market if player.carrots >= 10 && !cards.is_empty() => Ok(()),

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.