facebookresearch /
projectaria_tools
projectaria_tools is an C++/Python open-source toolkit to interact with Project Aria data.
Loading repository data…
MahanQaderi / repository
An interactive C++ console game based on the classic Missionaries and Cannibals river-crossing puzzle, with full move validation and win/loss detection.
A console-based C++ implementation of the classic Missionaries and Cannibals river-crossing puzzle. Move three missionaries and three cannibals from one bank of a river to the other, without ever letting the cannibals outnumber the missionaries anywhere.
This is a playable game for a human, not an automated solver — every move is typed in by the player, and the game validates it in real time.
Three missionaries and three cannibals are standing on the left bank of a river, with one boat between them. The rules:
Get everyone across safely and you win. Get the numbers wrong, and the missionaries don't survive the trip.
Requires a C++11-compatible compiler (the game state uses in-class member initializers, a C++11 feature).
g++ -std=c++11 -o missionaries_and_cannibals missionaries_and_cannibals.cpp
./missionaries_and_cannibals
On Windows (MinGW):
g++ -std=c++11 -o missionaries_and_cannibals.exe missionaries_and_cannibals.cpp
missionaries_and_cannibals.exe
Missionaries and Cannibals Game
------------------------------------
Goal: Safely get all missionaries and cannibals to the RIGHT side.
Rules:
- Boat can carry 1 or 2 people at a time.
- Missionaries must NEVER be outnumbered by cannibals on any side.
- The boat cannot move empty.
Let's begin!
------------------------------
Left Side: 3 missionaries, 3 cannibals
Right Side: 0 missionaries, 0 cannibals
Boat is on the LEFT side.
------------------------------
Move #1
Enter number of missionaries to move (0-2): 0
Enter number of cannibals to move (0-2): 2
The board keeps redrawing like this after every move, right up until you either land all six people safely on the right bank or make a move that gets someone eaten.
.
└── missionaries_and_cannibals.cpp # Complete game logic in a single file
Issues and pull requests are welcome — a bug fix, an AI solver mode, an undo option, or anything else you'd like to add.
English | فارسی
پیادهسازی کنسولی این پازل کلاسیک با C++. باید سه کشیش و سه آدمخوار رو از یک ساحل رودخونه به ساحل دیگه ببری، بدون اینکه هیچوقت تعداد آدمخوارها از کشیشها بیشتر بشه.
این یک بازی برای انسانه، نه یک الگوریتم حلکننده - هر حرکت رو خود بازیکن وارد میکنه و بازی بهصورت آنی درستیاش رو بررسی میکنه.
سه کشیش و سه آدمخوار روی ساحل چپ رودخونه ایستادن و فقط یک قایق در اختیار دارن. قوانین:
اگه همه رو سالم به اون طرف برسونی، بردی. اگه محاسبهات اشتباه باشه، کشیشها زنده از این سفر برنمیگردن.
به یک کامپایلر سازگار با C++11 نیاز داری (کلاس بازی از مقداردهی اولیهی درونکلاسی استفاده میکنه که یک ویژگی C++11 هست).
g++ -std=c++11 -o missionaries_and_cannibals missionaries_and_cannibals.cpp
./missionaries_and_cannibals
روی ویندوز (MinGW):
g++ -std=c++11 -o missionaries_and_cannibals.exe missionaries_and_cannibals.cpp
missionaries_and_cannibals.exe
خروجی واقعی برنامه به انگلیسیه، چون متنهای داخل کد همینطور نوشته شدن:
Missionaries and Cannibals Game
------------------------------------
Goal: Safely get all missionaries and cannibals to the RIGHT side.
Rules:
- Boat can carry 1 or 2 people at a time.
- Missionaries must NEVER be outnumbered by cannibals on any side.
- The boat cannot move empty.
Let's begin!
------------------------------
Left Side: 3 missionaries, 3 cannibals
Right Side: 0 missionaries, 0 cannibals
Boat is on the LEFT side.
------------------------------
Move #1
Enter number of missionaries to move (0-2): 0
Enter number of cannibals to move (0-2): 2
تختهی بازی بعد از هر حرکت همینطور دوباره رسم میشه، تا وقتی که یا هر شش نفر رو سالم به ساحل راست برسونی، یا حرکتی بزنی که باعث بشه یکی خورده بشه.
.
└── missionaries_and_cannibals.cpp # کل منطق بازی در یک فایل
از Issue و Pull Request استقبال میشه - چه رفع باگ باشه، چه اضافهکردن یک حالت حلکنندهی هوش مصنوعی، چه گزینهی بازگشت به عقب، یا هر چیز دیگهای که دوست داری اضافهش کنی.
Selected from shared topics, language and repository description—not editorial ratings.
facebookresearch /
projectaria_tools is an C++/Python open-source toolkit to interact with Project Aria data.
connor-brooks /
An interactive ecosystem and evolution simulator written in C and OpenGL, for GNU/Linux.
GloriousPtr /
AGE: Arc Game Engine is an open-source engine for building 2D & 3D real-time rendering and interactive contents, especially video games with C# scripting support.
grisuno /
LazyOwn RedTeam/APT Framework is the first RedTeam Framework with an AI-powered C&C, featuring rootkits to conceal campaigns, undetectable malleable implants compatible with Windows/Linux/Mac OSX, and self-configuring backdoors. With its Web interface and powerful Console Client, it is the best combination for your Autonomous RedTeam/APT campaigns.
DataficationSDK /
Extensible interactive notebook platform for .NET. Every built-in feature, from the C# kernel to the dashboard layout, is an extension built on the same public interfaces available to third-party authors. Runs in VS Code and the browser.
akosma /
This is an Xcode project (for iPhone), showing an Objective-C class (called Wrapper) which can be used to interact with remote REST web services.