Coder Social home page Coder Social logo

hounds's Introduction

hits

“The first time you meet an angel you get a horrible beating”
― Terry A. Davis

o(*≧▽≦)ツ┏━┓

active projects that may benefit you:

project description licence status last release
tomlantic marrying pydantic models and tomlkit documents for data validated, style-preserving toml files Unlicense 🟢 active v0.2.1 (Mar 12, 2024)
surplus-on-wheels run surplus automatically on termux and send it to your friends! Unlicense 🟠 mature v1 (Nov 9, 2023)
spow-whatsapp-bridge bridge for surplus on wheels (s+ow) to send messages to whatsapp Unlicense 🛠️ maintenance v1 (Nov 7, 2023)
spow-telegram-bridge bridge for surplus on wheels (s+ow) to send messages to telegram Unlicense 🛠️ maintenance v1 (Nov 6, 2023)
surplus Plus Code/latlong/query to iOS-Shortcuts-like shareable text Unlicense 🟠 mature v2.2.0 (Oct 15, 2023)
fluffy58 an approachable 60%-like keymap for the lily58 pro re GPL-3.0-only 🛠️ maintenance v3 (Sep 25, 2023)

legend:

  • 🟢 active
    is being worked on actively
  • 🟠 mature
    considered stable, new releases possible but may be sparse
  • 🛠️ maintenance
    considered complete, no new features planned, only will be updated for bug or security fixes

special thanks to those who’ve bought me a little drink!

hounds's People

Contributors

markjoshwel avatar

Watchers

 avatar

hounds's Issues

Better hare escaped logic

Written in Python as a proof-of-concept, transpile to Godot later:

def place_to_column(place: int) -> int:
  # 1 2 3 4 5
  # ---------
  #   2 5 8
  # 1 3 6 9 Y
  #   4 7 X

  if place == 1:
    return 1
  elif place in [2, 3, 4]:
    return 2
  elif place in [5, 6, 7]:
    return 3
  elif place in [8, 9, 10]:
    return 4
  else:
    return 5

def hare_escaped(hare: int, h1: int, h2: int, h3: int) -> bool:
  """
  hare escaped requirements
  
  1. all hound places are below hares place
  2. at least one hound is at least a column further than the hare
  """
  print(place_to_column(hare), place_to_column(h1), place_to_column(h2), place_to_column(h3))

  escaped: bool = False
  
  if hare == 11:
    return True
  
  if h1 > hare:
    escaped = True

  if h1 > hare:
    escaped = True

  if h2 > hare:
    escaped = True

  if h3 > hare:
    escaped = True

  hare_col = place_to_column(hare)
  
  if place_to_column(h1) > hare_col:
    escaped = False

  if place_to_column(h2) > hare_col:
    escaped = False

  if place_to_column(h3) > hare_col:
    escaped = False

  return escaped

(i know these are yandev-esque if statements, but this i don't intend on checking this because it'll be transpiled to godot later which I do this anyways because I just learnt GDScript)

[HOLD] Project Release Export Issues: empty array returned, unhandled input (Godot 4 alpha 10)

Issues

  1. "pause" input is not recognised

    Potential Fixes:

    • change _unhandled_input to _input, perhaps it is actually being handled
  2. Board.hare_potentials and Board.hound_poentials return an empty array

    Debug print statements show that the potentials: Array[int] arrays are being appended to, but become empty on return as shown in debug print statements from Game.focus_on

    Update: This is a known issue and is fixed. Waiting for Godot 4a11. (perhaps build from master?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.