GithubHelp home page GithubHelp logo

py-mcr's People

Contributors

offe avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar

py-mcr's Issues

Display error

What steps will reproduce the problem?
http://mahjonghand.appspot.com/?sit=m+b1b2b3+m+b4b5b6+c+b9b9b9b9+h+b1b1b5b6+w+b7
+f+F3F5F6+v+b7b7b7&calc=Calculate

What is the expected output? What do you see instead?
7b is diplayed in front of concealed kong, should be b9b9b9b9

What version of the product are you using? On what operating system?
http://mahjonghand.appspot.com

Here is the solution:
$ diff mahtml.py.orig mahtml.py
101,107c101,106
<         if len(sets) == 1:
<             if type(sets[0]) == str:
<                 # A single tile
<                 tile_string = getTileImages([sets[0]])
<             else:
<                 # A boolean like for single wait
<                 tile_string = getTileImages([option['w']])

---
>         if len(sets) == 1 and type(sets[0]) == str:
>             # A single tile (flower case)
>             tile_string = getTileImages([sets[0]])
>         elif len(sets) == 1 and type(sets[0]) == bool:
>             # A boolean like for single wait
>             tile_string = getTileImages([option['w']])



Original issue reported on code.google.com by [email protected] on 28 Sep 2010 at 9:25

maxpoints tests fail on r26

What steps will reproduce the problem?
python test_all.py

What is the expected output? What do you see instead?
Every tests should pass

Please use labels and text to provide additional information.

maxpoints: 
**********************************************************************
File "/home/jerome/Projets/py-mcr/maxpoints.py", line 157, in 
maxpoints.max_points
Failed example:
    max_points(parse_command_line('h 123123b123123bWe w We')) # Quadrople chows should imply tile hogs
Expected:
    61
Got:
    67
**********************************************************************
File "/home/jerome/Projets/py-mcr/maxpoints.py", line 163, in 
maxpoints.max_points
Failed example:
    max_points(parse_command_line('h 222233446688bDg w Dg'))
Expected:
    118
    Strange exception from Beyond the Green (All green does not get for One Voided)
Got:
    120
**********************************************************************
File "/home/jerome/Projets/py-mcr/maxpoints.py", line 167, in 
maxpoints.max_points
Failed example:
    max_points(parse_command_line('h 1199b1199c11999d w 9d self_draw'))
Expected:
    Strange exception from Beyond the Green (All terminals does not get for One Voided)
    92
Got:
    94
**********************************************************************
File "/home/jerome/Projets/py-mcr/maxpoints.py", line 171, in 
maxpoints.max_points
Failed example:
    max_points(parse_command_line('m 222b h 456b12345d99d w 3d'))
Expected:
    9
    Obs! Reversible should not imply One Voided, it should be an exception
Got:
    9
**********************************************************************
1 items had failures:
   4 of  16 in maxpoints.max_points
***Test Failed*** 4 failures.
16 tests, 4 failed in 1.53s --

Original issue reported on code.google.com by [email protected] on 9 Oct 2010 at 5:25

Engine does not check validity of melded tiles

h 79b m 1111223b 578c w 8b

The hand should not be accepted, the melded tiles are invalid. 

Instead the hand is awarded 3 points. 

578 chow is not a chow
One tile is missing
The pair is melded before going out
The first melded group consists of 7 tiles


Original issue reported on code.google.com by [email protected] on 22 Sep 2008 at 8:42

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.