Matthew wrote:You can still make a calculator with a large part software. Why don't you try getting a PIC development kit (programmer/tester) and making simple programs with it. Then you might want to try interfacing with basic components on a breadboard and maybe you will someday want to make a home-made printed circuit board (Something experts do and requires the use of dangerous chemicals and extreme safety caution must be used).
Have you used electrical components before and do you know much about them?
I have used them before but too long to remember any information.
Oh, and I have this snippet of C...
Code: Select all
void PlayerTurn(char board[3][3])
{
int placement;
int loop = 0;
do
{
printf("\nWhere would you like to place an 'X'?\n> ");
scanf("%d", &placement);
switch (placement)
{
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
loop = 0;
break;
default:
loop = 1;
}
} while (loop);
}
And although it loops, it does not do a great job of what I am trying to get it to do. I want it to check to see if it's 1-9, and if not, loop again until it is. Help is appreciated.