hccheng / py-mcr Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/py-mcr
Automatically exported from code.google.com/p/py-mcr
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
c Weeee Wssss Wwwww Wnnnn h Dr w Dr
Two Concealed Kongs*2? Why not Two Concealed Kongs*6?
Principle 3.9.1.5(3) and 3.9.1.5(5) apply to the same set of fans.
Original issue reported on code.google.com by [email protected]
on 27 Sep 2009 at 9:20
h 2222333344448b w 8b
Original issue reported on code.google.com by [email protected]
on 27 Sep 2009 at 9:07
h 3333555c 123456b w 4c
c 4444c h 3555c 123456b w 3c
c 4444c h 5688c 123456b w 7c
Original issue reported on code.google.com by [email protected]
on 27 Sep 2009 at 9:09
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
h 1111b 1111c 1111d 9d w 9d
h 2222b 3333b 8888b Dg w Dg
Original issue reported on code.google.com by [email protected]
on 27 Sep 2009 at 9:05
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
In maxpoints.py you can remove unused import pprint
Original issue reported on code.google.com by [email protected]
on 29 Sep 2010 at 7:51
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.