Skip to content

Instantly share code, notes, and snippets.

View su8's full-sized avatar

su8

  • defunct
View GitHub Profile
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
// Function to print the game board
void printBoard(const std::vector<std::vector<char>>& board) {
std::cout << " ";
for (int i = 0; i < board.size(); i++) {
std::cout << i << " ";
@su8
su8 / main2.cpp
Last active March 12, 2025 10:40
/*
Copyright 03/11/2025 https://github.com/su8/0verm0n
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@su8
su8 / main.cpp
Last active March 11, 2025 13:42
/* BROUGHT TO YOU BY CODE-PROJECTS.ORG */
/* SIMPLE ROLE-PLAYING GAME */
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int choice, mhp, hp, i, init, atk, def, matk, mdef, hurt, mhurt, agi, magi;
@su8
su8 / main.cpp
Last active March 9, 2025 16:40
/*
03/09/2025 https://github.com/su8/hackzy
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@su8
su8 / main.cpp
Last active March 7, 2025 12:17
main.cpp
/*
12/20/2024 https://github.com/su8/c++blogfy2
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@su8
su8 / mouse_clicks.c
Created March 5, 2025 09:42
Simulate mouse clicks
int main(int argc, char **argv) {
int button = 3;
if(argc < 2) {
puts("Value Needed : 1, 2 or 3");
exit(1);
} else button = atoi(argv[1]);
button = (button > 0) ? button : 3;
button = (button < 4) ? button : 3;
@su8
su8 / null.cpp
Created December 20, 2024 17:25
null
/*
12/20/2024 https://github.com/su8/c++blogfy2
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@su8
su8 / t.cpp
Created August 30, 2024 09:51
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <memory>
#include <string>
#include <regex>
# 08/29/2024 https://github.com/su8/cblogfy
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
@su8
su8 / t.cpp
Created August 30, 2024 09:03
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <memory>
#include <string>
#include <regex>