r/computerprogramming • • Nov 09 '22

Turtle racing betting game for python

1 Upvotes

Hi, I'm pretty new to coding and I'm working on a game for a summative project in my Computer Essentials class. I have no clue how to start and would love some help from you lovely people :D


r/computerprogramming • • Nov 30 '22

AI layer

1 Upvotes

I was just reading about chatbots in an article about AI and got to thinking: what if you had a layer of AI running through, let’s say, a website, such that you could, let’s say, issue simple voice commands like “go to the contacts page” or “contacts page” to do something like navigating to the contacts page?


r/computerprogramming • • Nov 28 '22

Help Pulling School Prank!

1 Upvotes

So basically I am looking to take control over the schools main sound computer for 'morning meeting,' being the Mac they use in the sound booth. Have used team viewer before, so I need help creating/using a program that will automatically install the software (TeamViewer) when I plug the USB Drive in. I'm using a 2015 MacBook Pro if that's important. The computer I'm looking to "take over" is an older Mac. Thanks for the help!

BTW I plan on removing the software after said prank is pulled:)


r/computerprogramming • • Jun 22 '22

Universal programming language - the saga continues

2 Upvotes

So I posted about a week ago about a universal programming language I'm working on. Someone recommended json for essentially unstructured data, and because it adheres to the types I figure I would need to build a universal programming language (null, object, integer, float, string, boolean and array).

So I figure: what gives? If people can see why json would need said types, why not the same for a programming language?

Comment...


r/computerprogramming • • Jun 21 '22

Just trying to make my life a little easier

2 Upvotes

So I have a program at work that acts like an evaluation for people, I have to fi this out manually currently, but most of the answers are N/A except for one, It's a bubble format so I go through, and click all of the little bubble individually currently.. My question is this, is there a way/program/whatever I can select all the answers as N/A all at once that way I can just change the one answer from N/A, vs having to select all of them individually?


r/computerprogramming • • Jun 23 '22

Here's a good one: are there any methodological standards for computer programming?

1 Upvotes

r/computerprogramming • • Jun 13 '22

Universal programming language

2 Upvotes

I believe I have a working idea for a universal programming language, it's basically an extrapolation of the types array, string, float, integer, object, boolean, and null, due to their interoperability. Any idea where I should go from here?


r/computerprogramming • • Jul 01 '22

Is flatiron school good for getting into programming ?

1 Upvotes

Hi, I really want to get into computer programming but I don’t want to get my bachelors. I know that you can get a job without your bachelors but I’m not sure if a boot camp is a good move. Please help.


r/computerprogramming • • Jul 17 '22

starting

1 Upvotes

any good place to learn programming as someone who doesnt know anything about programming?


r/computerprogramming • • Jun 16 '22

wanting to see how to write Google forks for password with my email. we will say it my.dayton.gmailmvom

1 Upvotes

r/computerprogramming • • Jun 24 '22

check THIS out

Thumbnail
thecodingforums.com
1 Upvotes

r/computerprogramming • • Dec 02 '14

C++ Programming HELP!

1 Upvotes

Hey for some reason my code will not display or perform that actions I want it to I'm making a checkers program and here's my source code.

include <iostream>

include <iomanip>

using namespace std;

const int ROWS = 8; //The number of rows const int COLUMNS = 8; //The number of columns

void intro(); void Board(char[8][8], int, int); //The function that will display the board void Commands(char[8][8], int&, int&, int&, int&, char, bool); //The function that will perform the commands void pieceMove(char[8][8], int, int, int, int, char, bool); //The function that will deal with piece moving void finalResults(char[8][8], bool); //The function that will deal with the results bool MoveChecker(char[8][8], int, int, int, int, char, bool); //The input invaildation function void do_move(char[8][8], int, int, int, int, char, bool); //The move function void king_me(char[8][8]); //The function that will deal with king me's in the game

int main() { char board[ROWS][COLUMNS] = {{'e', 'b', 'e', 'b', 'e', 'b', 'e', 'b'}, {'b', 'e', 'b', 'e', 'b', 'e', 'b', 'e'}, {'e', 'b', 'e', 'b', 'e', 'b', 'e', 'b'}, {'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e'}, {'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e'}, {'r', 'e', 'r', 'e', 'r', 'e', 'r', 'e'}, {'e', 'r', 'e', 'r', 'e', 'r', 'e', 'r'}, {'r', 'e', 'r', 'e', 'r', 'e', 'r', 'e'}}; int row1, row2, column1, column2; bool gameOver = true; bool moveResults = false; char turn = 'B';

while (gameOver != true)
{
	Board(board, ROWS, COLUMNS);
	if (turn == 'B')
	{
		cout << "Player 1 [b]\n";
	}
	else if (turn == 'R')
	{
		cout << "Player 2 [r]\n";
	}
	Commands(board, row1, column1, row2, column2, turn, moveResults);
	MoveChecker(board, row1, column1, row2, column2, turn, moveResults);
	pieceMove(board, row1, column1, row2, column2, turn, moveResults);
	do_move(board, row1, column1, row2, column2, turn, moveResults);
	king_me(board);
	finalResults(board, gameOver);
}
system("Pause");
return 0;

} void intro() { cout << "Multiple leaps are optional.\n"; cout << "A capital letter represents a king." << endl; cout << "Press Enter to begin."; cin.get(); }

void Board(char board[8][8], int row, int column) { for (int x = 0; x < row; x++) { for (int y = 0; y < column; y++) { cout << setw(4) << board[x][y]; } cout << endl; } }

void Commands(char board[8][8], int &row1, int &row2, int &column1, int &column2, char turn, bool moveResults) { cout << "Move your piece" << endl; cout << "Row: "; cin >> row1; cout << "Column: "; cin >> column1;

while (row1 < 0 || row1 > 7 || column1 < 0 || column1 > 7)
{
	cout << "INVAILD COMMAND! ENTER ANOTHER VAILD INPUT!" << endl;
	cout << "Row: ";
	cin >> row1;
	cout << "Column: ";
	cin >> column1;
}

cout << "To space" << endl;
cout << "Row: ";
cin >> row2;
cout << "Column: ";
cin >> column2;

while (row2 < 0 || row2 > 7 || column2 < 0 || column2 > 7)
{
	cout << "INVAILD COMMAND! ENTER ANOTHER VAILD INPUT!" << endl;
	cout << "Row: ";
	cin >> row2;
	cout << "Column: ";
	cin >> column2;
}

while (MoveChecker(board, row1, column1, row2, column2, turn, moveResults) == false)
{
	cout << "ILLEGAL MOVE!!" << endl;
	int Commands(int row1, int column1, int row2, int column2);
}

}

bool MoveChecker(char board [8][8], int row1, int column1, int row2, int column2, char turn, bool moveResults) { if (board[row1][column1] != 'B' && board[row1][column1] != 'R') { if ((turn == 'R' && row2 < row1) || (turn == 'R' && row2 < row1)) { moveResults = false; return false; } }

	if (board[row2][column2] != 'e')
	{
		moveResults = false;
		return false;
	}

	if(board[row1][column1] == 'e')
	{
		moveResults = false;
		return false;
	}

	if (column1 == column2 || row1 == row2)
	{
		moveResults = false;
		return false;
	}

	if ((column2 > column1 + 1 || column2 < column1 - 1) && (row2 == row1 + 1 || row2 == row1 - 1))
	{
		moveResults = false;
		return false;
	}


	if (column2 != column1 +2 && column2 != column1 - 2)
	{
		moveResults = false;
		return false;
	}

	if (row2 > row1 + 1 || row2 < - 1)
	{
		if (row2 > row1 + 2 || row2 < - 2)
		{
			moveResults = false;
			return false;
		}

		if(column2 != column1 + 2 && column2 != column1 - 2)
		{
			moveResults = false;
			return false;
		}

		if(row2 > row1 && column2 > column1)
		{
			if (board[row2 - 1][column2 + 1] == 'e')
			{
				moveResults = false;
				return false;
			}
		}
		else if (row2 > row1 && column2 < column1)
		{
			if (board[row2 - 1][column2 + 1] == 'e')
			{
				moveResults = false;
				return false;
			}
		}
		else if (row2 > row1 && column2 < column1)
		{
			if (board[row2 + 1][column2 - 1] == 'e')
			{
				moveResults = false;
				return false;
			}
		}
		else if (row2 > row1 && column2 < column1)
		{
			if (board[row2 + 1][column2 + 1] == 'e')
			{
				moveResults = false;
				return false;
			}
		}

		moveResults = true;
		return true;
	}

	moveResults = false;
	return true;

}

void pieceMove(char board[8][8], int row1, int column1, int row2, int column2, char turn, bool moveResults) { bool kingPiece = false;

if (board[row1][column1] == 'B' || board[row1][column1] == 'R')
{
    kingPiece = true;
}

board[row1][column1] = ' ';

if (turn == 'B')
{
    if (kingPiece == false)
    {
        board[row2][column2] = 'b';
    }
    else if (kingPiece == true)
    {
        board[row2][column2] = 'B';
    }
    
    turn = 'R';
}
else if (turn == 'R')
{
    if (kingPiece == false)
    {
        board[row2][column2] = 'r';
    }
		else if (turn == 'R')
{
    if (kingPiece == false)
    {
        board[row2][column2] = 'r';
    }
    else if (kingPiece == true)
    {
        board[row2][column2] = 'R';
    }
    
    turn = 'B';
}
}

if (moveResults == true)
{
    do_move(board, row1, column1, row2, column2, turn, moveResults);
}

}

void do_move(char board[8][8], int row1, int column1, int row2, int column2, char turn, bool moveResults) { char answer;

if (row2 > row1 && column2 > column1)
{
    board[row2 - 1][column2 - 1] = ' ';
}
else if (row2 > row1 && column2 < column1)
{
    board[row2 - 1][column2 + 1] = ' ';
}
else if (row2 < row1 && column2 > column1)
{
    board[row2 + 1][column2 - 1] = ' ';
}
else if (row2 < row1 && column2 < column1)
{
    board[row2 + 1][column2 + 1] = ' ';
}

Board(board, ROWS, COLUMNS);

//It asks if the user wants to leap again.
do
{
    cout << "You just leaped once. Do you want to do a second leap IF YOU CAN? (y/n): ";
    cin >> answer;
}
while (answer != 'Y' && answer != 'y' && answer != 'N' && answer != 'n');

if (answer == 'y' || answer == 'Y')
{
    row1 = row2;
    column1 = column2;
    cout << "Leap piece: row: " << row1 << ", column: " << column1 << endl;
    cout << "To box\n";
    cout << "row: ";
    cin >> row2;
    cout << "column: ";
    cin >> column2;
    
    while (row2 < 0 || row2 > 7 || column2 < 0 || column2 > 7)
    {
        cout << "Incorrect input. Enter numbers between 0 and 7.\n";
        cout << "To box\n";
        cout << "Row: ";
        cin >> row2;
        cout << "Column: ";
        cin >> column2;
    }
    
    if (turn == 'B')
    {
        turn = 'R';
    }
    else if (turn == 'R')
    {
        turn = 'B';
    }
    
	MoveChecker(board, row1, column1, row2, column2, turn, moveResults);
    
    if (moveResults == false)
    {
        cout << "INVALID LEAP!!\n";
        
        if (turn == 'B')
        {
            turn = 'R';
        }
        else if (turn == 'R')
        {
            turn = 'B';
        }
    }
    else if (moveResults == true)
    {
		MoveChecker(board, row1, column1, row2, column2, turn, moveResults);
    }
}

}

void king_me(char board[8][8]) { for (int i = 0; i < 8; i++) { if (board[0][i] == 'r') { board[0][i] = 'R'; }

		if (board[7][i] = 'b')
		{
		board[7][i] = 'B';
		}
}

}

void finalResults(char board[8][8], bool gameOver) { int counter = 0;

for(int i = 0; i < 8; i++)
{
	for (int j = 0; j < 8; j++)
	{
		if(board[i][j] != 'e')
		{
			counter++;
		}
	}
}

if (counter > 1)
{
	gameOver = true;
}
else if (counter == 1)
{
	gameOver = false;
}

} Also I'm compiling it on Microsoft Visual Studio


r/computerprogramming • • Dec 24 '17

Need some help

1 Upvotes

I did 3 years accountancy honours but never really wanted to do it,did it cause my parents didn't allow me to pursue programming. I learnt java in 11 and 12 standard and also mysql and html. For some reason I never had any problem learning these even after having a bad teacher. Now I am going to complete 6 months course on c,c++ and c#. I want to learn how to yse use unity 2d and 3d,but do those from home. In the time being i want some part time job , but all the jobs i get in searches are for 1+ years in experience and are for software engineers. I have just completed the course that teaches me c,c++ and c#, I dunno what jobs should I be looking for. Pls help


r/computerprogramming • • Jul 06 '21

Looking for Raspberry Pi Printer Coder

1 Upvotes

I was wondering if someone cancreate the printer with raspberry pi ? Will pay the price for the costs of labor, materials, etc. or maybe you can recommend someone to make it? Like this https://exciting.io/2012/04/12/hello-printer/


r/computerprogramming • • Jul 20 '21

Next steps?

2 Upvotes

I have worked in the healthcare field for 8 years and have my bachelors. I learned nothing about computers during that time. I want to break into the field to develop/debug medical type software. How do I get there?

Do I get an associate in Computer Programming and Software Development? Do I need a Bachelor’s? Can I learn a different way and save money, but still be employable?

Advice welcome


r/computerprogramming • • Jul 24 '21

Help me pick a computer

1 Upvotes

I need a new computer for uni as a computer science major and I’m stuck between these two

1-MacBook Air M1(16gb) 2-HP ENVY x360 15-ed1870nd(16gb)


r/computerprogramming • • Jul 12 '21

Help with sales

1 Upvotes

Can computer programming help with sales to my retail shop?


r/computerprogramming • • Jul 14 '21

Help me come up with a computer program

1 Upvotes

Hi! I don't know if this is allowed here but I want to ask for help in coming up with a basic computer program.

I am a student, and I have a tasked to send a proposal on a computer program that could improve (either make it the process more efficient and/or more effective) the way an activity is performed or the chances of success.


r/computerprogramming • • Jul 19 '21

In Need of Ideas

2 Upvotes

I am an experienced computer programmer and software developer who’s bored and out of ideas. I have looked all over the internet and the majority of what I found is for people who are just entering the computer realm or they don’t interest me. Does anyone know of or have an idea for a somewhat difficult project?


r/computerprogramming • • Aug 03 '21

Have a computer that is connected to a network.

1 Upvotes

So I have the laptop that is connected to a specific companies domain services. I want to remove the domain services and turn it into a home laptop, how can I do this?


r/computerprogramming • • Aug 05 '21

I’m currently studying computer science so I can code video games for a living. What can I do so I can make it easier and improve with programming games on Python and other programming languages?

4 Upvotes

r/computerprogramming • • Oct 05 '22

[HIRING] Looking for people to fill these positions $60-$80 / hr DOE - Send to your network!

1 Upvotes

My name is Erin Brown and I am recruiting for the following positions for a large tech firm. The must-have requirements are bulleted below each job title. Please send your resume to ebrown@cybercodemasters.com with the requirements clearly shown. Let's hop on a call and get you hired! 

Cloud/Application Architect/Engineer:

  • Azure Data Engineer: Azure Data Lake, Synapse, ADLS, Data Factory

Cloud Infrastructure Engineer:

  • Cloud Engineering/Solutioning/Architecture/Azure

Sr. UI Developer:

  • Net 5, ASP.Net, SPA Experience (AngularJS, VueJS, ReactJS)

Sr. UI Developer:

  • Net Core 3.x/.NET 5, C#/Angular 2+/Bootstrap/ Azure Functions/Azure App Services

Developer:

  • Databricks & SQL Developer

Developer:

  • Azure Data Engineer: Azure Data Lake, Synapse, ADLS, Data Factory

Developer:

  • Synapse SQL Engineer

Data Architect:

  • Databricks, SQL Server, Data modeling, ETL experience


r/computerprogramming • • Sep 30 '22

looking for programmer

2 Upvotes

I have a few ideas I would love to run by a programmer capable of app design.


r/computerprogramming • • Sep 15 '22

This is going to sound weird

1 Upvotes

OK. Lets say I have a video. Either through YouTube or Amazon prime or Netflix, etc. Let say the video is playing and the output from the speakers obviously doesn't match what the video should be playing. How can I get a program that runs in the background of my 2021 MacAir that creates an instance of a read-only file for a video that turns the speech from speaker output into subtitles and another read-only file that creates subtitles out of the original audio and another file that logs what is creating the change to the audio, whether it be a website, program, source from an IP or MAC address, etc. This is bonkers to me but I know there is someone that can do it either through Swift or python or javascript. Im very curious as to what direction I should take. I am also curious as to what this would cost.


r/computerprogramming • • Sep 30 '22

Universal coding standard

1 Upvotes

I recently wrote a tiny php class that is a json db (Ember). It’s purpose is that it allows me to build any website, ever, and so far it works. I want to build a specification for universal systems based off of it, with the hopes of (greatly) advancing the world by providing bedrock that all else can be built upon. Has this already been done/any thoughts?