Anyone have the algorithm for determine if a hand of Mahjong game wins or not? [closed] - c++

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am reading some introduction of an ancient Chinese game called Mahjong (a bit like poker but far more complicated). I have been spending couple days in writing a program to determine if a given hand is a win hand or not. Do anyone have any idea or know where can I find the free code for that? I only need the part to determine win/lose, I am not looking for the entire project. Thanks.

There is this cool Python library that can be used for scoring of a Mahjong hand given a situation. I know you are working in C++, but since python is highly readable, even to non-python coders, maybe you'll be able to copy/paste and edit the relevant part so you'll be able to use them.
Hope that helps you in some way.

Related

My first project: Editing an .img file, guidance wanted [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Note: The only programming experience i have can be found here(cs50.tv).
I know some deal about c, and i have visual studio express 2012 running. I want to dive into making stuff and currently i am aiming to create a mod install for a game (Gta San, in case anybody cares).
Essentially the file just need to open a .img file(gta3.img to be exact) and remove/replace/append files to it.
I am thinking that the best way to learn programming is to program, and i am hoping that i can get some help about it.
Please tell me what kind of concepts should i research so as to get started? (Excluding c++ syntax, OOP or using visual studio. I know about em already and working my butt off on em. Havent slept for over 36 hours..).
I do not know to help you at this specific question. However you have right that you have to do something in order to learn how to code. At this part i would sugest visit http://www.code.org/ . This is a great website, and it is really helpful at helping you learn how to code, but also to create mobile application, or a website.
Sorry I do not know how to guide you at this problem

Which technology is used? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am thinking which technology is needed for making copy of this web service: http://dziswieczorem.pl/
Does someone know any almoust-ready solution (especially for map-things) implemented in django?
Or maybe could anyone give me tips in which technology it would be easier to implement something like that?
To be more concrete:
Is there some ready template containing world map like on page that I wrote about above? I also need a chat feature.
For the map functionality, you may get some benefit from django-gmapi, but I've never tried it so I don't know if it's exactly what you want or not.
As far as chat, there seem to be a few options here that you could consider: http://www.djangopackages.com/grids/g/chat/

how to add a library to xcode [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
this has been asked plenty of times, but I always find them hard to follow. Its quite simple.
How do you add a library and/or framework to xcode and/ or your xcode project. I need all the steps between downloading the library, to typing the #include in the code. But I also need some context behind each step, other wise it won't stick in my mind and I'll back here in a week. Bear in mind I have an limited understanding of the xcode development environment. Thanks in advance.
Follow the screenshots and you are good to go

Contributing to an opensource C++ library [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
How should i get it, by SVN?
Can i use Eclipse and its Subversive Team Provider add on to manage my changes?
Then if i make some changes how can i commit, who decide that my changes are friendly and good enough?
To be honest i want to try to contribute to some library, because of motivation that contribution provides me on learning C++ details.
I search and read a little about Boost, but i think it is too complicated to be a starting point.
Thus can you provide a path to start and become an open source library contributor?
Well, the very first step is to actually read the FAQ. That's always a good start.
Especially the "How can I contribute to development?" question.
http://www.boost.org/users/faq.html

Advice on Creating a DBMS [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I am looking at ways of creating my own DBMS from scratch in C++ (just for fun and educational purposes). I am stuck with the place to start it. Can anybody tell me how I should begin (design) this. Will postgresql code and the architecture be of any help?
Thanks in advance.
Have a look at SQLite and its doccumentation. it might be a good point to start.
Start by reading "Transaction Processing: Concepts & Techniques" by Gray and Reuter. It goes through all the major components of a DBMS. Following the references is very interesting.
It is almost 20 years old now, but still very relevant.