Giter Club home page Giter Club logo

csol's People

Contributors

nielssp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

csol's Issues

Variable number of re-deals in Klondike

In the way I learned to play Klondike, the player was able to have as many re-deals as they wanted. (I believe this goes for Microsoft Solitaire as well.) Perhaps there could be an option to choose the amount of re-deals allowed in a game?

Hint to press enter in quit prompt

When the player presses Q, this prompt appears:

The player can then make a selection with Y or N as shown in the prompt, but I've also noticed that you can press Enter to continue the game. Generally the capitalized letter in a terminal prompt means it's the default.

Consider changing the prompt to Quit? (y/N) (with a lowercase "y") to hint to the user that the the default option will be to continue the game, and can also be triggered by pressing Enter.

Bug with relative searches after including

Note: See here for files used to recreate the bug.

If a configuration file uses the include command, any following include,
game_dir and theme_dir commands will be relative to that file, not the one executing them.

> csol -c conf1
Using configuration file: conf1
Warning: file "example" not found, searching all theme files
theme not found: 'example'

I believe this is caused by cwd of execute_file in rc.c being overridden when
the function is called recursively.

This may be caused by dirname not returning unique pointers every time or just some c jank.

Busy wait after victory animation

Here's the fix for this:

--- ui.c.orig	2020-07-04 11:49:45.000000000 +0200
+++ ui.c	2021-05-07 08:17:26.000000000 +0200
@@ -419,6 +419,7 @@
       }
     }
   }
+  nodelay(stdscr, 0);
   while (1) {
     switch (getch()) {
       case 'r':

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.