Discuss Scratch

  • Discussion Forums
  • » Requests
  • » T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0 [RSS Feed]
culverkwan
Scratcher
500+ posts

T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0


Someone is spamming!
culverkwan
Scratcher
500+ posts

T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0

ShutUp_Please wrote:

ShutUp_Please wrote:

#include <iostream>
#include <conio.h>

void run();
void printMap();
void initMap();
void move(int dx, int dy);
void update();
void changeDirection(char key);
void clearScreen();
void generateFood();

char getMapValue(int value);

// Map dimensions
const int mapwidth = 20;
const int mapheight = 20;

const int size = mapwidth * mapheight;

// The tile values for the map
int map;

// Snake head details
int headxpos;
int headypos;
int direction;

// Amount of food the snake has (How long the body is)
int food = 3;

// Determine if game is running
bool running;

int main()
{
run();
return 0;
}

// Main game function
void run()
{
// Initialize the map
initMap();
running = true;
while (running) {
// If a key is pressed
if (kbhit()) {
// Change to direction determined by key pressed
changeDirection(getch());
}
// Upate the map
update();

// Clear the screen
clearScreen();

// Print the map
printMap();

// wait 0.5 seconds
_sleep(500);
}

// Print out game over text
std::cout << “\t\t!!!Game over!” << std::endl << “\t\tYour score is: ” << food;

// Stop console from closing instantly
std::cin.ignore();
}

// Changes snake direction from input
void changeDirection(char key) {
/*
W
A + D
S

1
4 + 2
3
*/
switch (key) {
case ‘w’:
if (direction != 2) direction = 0;
break;
case ‘d’:
if (direction != 3) direction = 1;
break;
case ‘s’:
if (direction != 4) direction = 2;
break;
case ‘a’:
if (direction != 5) direction = 3;
break;
}
}

// Moves snake head to new location
void move(int dx, int dy) {
// determine new head position
int newx = headxpos + dx;
int newy = headypos + dy;

// Check if there is food at location
if (map == -2) {
// Increase food value (body length)
food++;

// Generate new food on map
generateFood();
}

// Check location is free
else if (map != 0) {
running = false;
}

// Move head to new location
headxpos = newx;
headypos = newy;
map = food + 1;

}

// Clears screen
void clearScreen() {
// Clear the screen
system(“cls”);
}

// Generates new food on map
void generateFood() {
int x = 0;
int y = 0;
do {
// Generate random x and y values within the map
x = rand() % (mapwidth - 2) + 1;
y = rand() % (mapheight - 2) + 1;

// If location is not free try again
} while (map != 0);

// Place new food
map = -2;
}

// Updates the map
void update() {
// Move in direction indicated
switch (direction) {
case 0: move(-1, 0);
break;
case 1: move(0, 1);
break;
case 2: move(1, 0);
break;
case 3: move(0, -1);
break;
}

// Reduce snake values on map by 1
for (int i = 0; i < size; i++) {
if (map > 0) map–;
}
}

// Initializes map
void initMap()
{
// Places the initual head location in middle of map
headxpos = mapwidth / 2;
headypos = mapheight / 2;
map = 1;

// Places top and bottom walls
for (int x = 0; x < mapwidth; ++x) {
map = -1;
map = -1;
}

// Places left and right walls
for (int y = 0; y < mapheight; y++) {
map = -1;
map = -1;
}

// Generates first food
generateFood();
}

// Prints the map to console
void printMap()
{
for (int x = 0; x < mapwidth; ++x) {
for (int y = 0; y < mapheight; ++y) {
// Prints the value at current x,y location
std::cout << getMapValue(map);
}
// Ends the line for next x value
std::cout << std::endl;
}
}

// Returns graphical character for display from map value
char getMapValue(int value)
{
// Returns a part of snake body
if (value > 0) return ‘o’;

switch (value) {
// Return wall
case -1: return ‘X’;
// Return food
case -2: return ‘O’;
}
}
I AM SPAMMING UNDER THE ORDER OF THE GREAT CULVERKWAN
I was hired lol
STOP SPAMMING!
LBormi
Scratcher
1000+ posts

T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0

culverkwan wrote:

ShutUp_Please wrote:

ShutUp_Please wrote:

-snipping-
I AM SPAMMING UNDER THE ORDER OF THE GREAT CULVERKWAN
I was hired lol
STOP SPAMMING!
Is that Java?

Last edited by LBormi (Jan. 23, 2020 11:39:30)

Big_Brick_Studios
Scratcher
100+ posts

T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0

LBormi wrote:

culverkwan wrote:

ShutUp_Please wrote:

ShutUp_Please wrote:

-snipping-
I AM SPAMMING UNDER THE ORDER OF THE GREAT CULVERKWAN
I was hired lol
STOP SPAMMING!
Is that Java?

that can’t be on this shop because it is post #8753 in the image, but that’s his next post. I don’t see <insert spammer’s name here>’s post on the thread, culverkuan couldn’t have quoted it, so how does that work?
Big_Brick_Studios
Scratcher
100+ posts

T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0

LBormi wrote:

culverkwan wrote:

ShutUp_Please wrote:

ShutUp_Please wrote:

-snipping-
I AM SPAMMING UNDER THE ORDER OF THE GREAT CULVERKWAN
I was hired lol
STOP SPAMMING!
Is that Java?
Im pretty sure that’s Java made for the snake eat apples to grow longer game, is it not?
LBormi
Scratcher
1000+ posts

T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0

Big_Brick_Studios wrote:

LBormi wrote:

culverkwan wrote:

ShutUp_Please wrote:

ShutUp_Please wrote:

-snipping-
I AM SPAMMING UNDER THE ORDER OF THE GREAT CULVERKWAN
I was hired lol
STOP SPAMMING!
Is that Java?
Im pretty sure that’s Java made for the snake eat apples to grow longer game, is it not?
It is. The game is just called ‘Snake’.
OrangeKitty30
Scratcher
100+ posts

T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0

Username: OrangeKitty30
Scratcher Status: Scratcher
Are you following this thread?: Yes
How active are you (1-10): 7-8
Why should we choose you?: I am skilled in banner making and I am working on my digital art. I can also voice act as young children or women. I am also a good person to come too for reviews and other advice like that. 1=0
ComputerCole
Scratcher
500+ posts

T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0

Username: ComputerCole
Work you want done: Banner
Deadline* (dd/mm/yyyy)/(write ASAP**): ASAP
Description: Make it say “The Creative Shop” and make it artsy background.
Project link (if needed): Not needed
Are your profile comments on or are you following this thread (you have to until you fill in the survey): Profile Comments open, I'm not following the discussion.
Link to profile: You can just click my username but here: https://scratch.mit.edu/users/ComputerCole/
Have you read the Terms of Service?: Yes
Big_Brick_Studios
Scratcher
100+ posts

T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0

LBormi wrote:

Big_Brick_Studios wrote:

LBormi wrote:

culverkwan wrote:

ShutUp_Please wrote:

ShutUp_Please wrote:

-snipping-
I AM SPAMMING UNDER THE ORDER OF THE GREAT CULVERKWAN
I was hired lol
STOP SPAMMING!
Is that Java?
Im pretty sure that’s Java made for the snake eat apples to grow longer game, is it not?
It is. The game is just called ‘Snake’.
I know, but somehow, some people don’t know what ‘snake’ is… by explaining it, it makes it easier for people to know what this game is
culverkwan
Scratcher
500+ posts

T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0

Culver_Kwan wrote:

Big_Brick_Studios wrote:

LBormi wrote:

culverkwan wrote:

ShutUp_Please wrote:

ShutUp_Please wrote:

-snipping-
I AM SPAMMING UNDER THE ORDER OF THE GREAT CULVERKWAN
I was hired lol
STOP SPAMMING!
Is that Java?

that can’t be on this shop because it is post #8753 in the image, but that’s his next post. I don’t see <insert spammer’s name here>’s post on the thread, culverkuan couldn’t have quoted it, so how does that work?
The spammer deleted the account.
And I am the alt of culverkwan
Don’t pretend to be my ALT!!!
culverkwan
Scratcher
500+ posts

T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0

Big_Brick_Studios wrote:

LBormi wrote:

culverkwan wrote:

ShutUp_Please wrote:

ShutUp_Please wrote:

-snipping-
I AM SPAMMING UNDER THE ORDER OF THE GREAT CULVERKWAN
I was hired lol
STOP SPAMMING!
Is that Java?

that can’t be on this shop because it is post #8753 in the image, but that’s his next post. I don’t see <insert spammer’s name here>’s post on the thread, culverkuan couldn’t have quoted it, so how does that work?
The scratch team deleted his posts so the post numbers got smaller after the deleted posts.
RedGuy7
Scratcher
1000+ posts

T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0

OrangeKitty30 wrote:

Username: OrangeKitty30
Scratcher Status: Scratcher
Are you following this thread?: Yes
How active are you (1-10): 7-8
Why should we choose you?: I am skilled in banner making and I am working on my digital art. I can also voice act as young children or women. I am also a good person to come too for reviews and other advice like that. 1=0
accepted but go to 2.0

Last edited by RedGuy7 (Jan. 24, 2020 14:48:48)

OrangeKitty30
Scratcher
100+ posts

T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0

RedGuy7 wrote:

OrangeKitty30 wrote:

Username: OrangeKitty30
Scratcher Status: Scratcher
Are you following this thread?: Yes
How active are you (1-10): 7-8
Why should we choose you?: I am skilled in banner making and I am working on my digital art. I can also voice act as young children or women. I am also a good person to come too for reviews and other advice like that. 1=0
accepted but go to 2.0
This is 2.0
Starstriker3000
Scratcher
1000+ posts

T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0

OrangeKitty30 wrote:

RedGuy7 wrote:

OrangeKitty30 wrote:

Username: OrangeKitty30
Scratcher Status: Scratcher
Are you following this thread?: Yes
How active are you (1-10): 7-8
Why should we choose you?: I am skilled in banner making and I am working on my digital art. I can also voice act as young children or women. I am also a good person to come too for reviews and other advice like that. 1=0
accepted but go to 2.0
This is 2.0
No it's not. It says Moving to TIPS 2.0 in the title. 2.0 is here.
OrangeKitty30
Scratcher
100+ posts

T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0

Starstriker3000 wrote:

OrangeKitty30 wrote:

RedGuy7 wrote:

OrangeKitty30 wrote:

Username: OrangeKitty30
Scratcher Status: Scratcher
Are you following this thread?: Yes
How active are you (1-10): 7-8
Why should we choose you?: I am skilled in banner making and I am working on my digital art. I can also voice act as young children or women. I am also a good person to come too for reviews and other advice like that. 1=0
accepted but go to 2.0
This is 2.0
No it's not. It says Moving to TIPS 2.0 in the title. 2.0 is here.
o
OurPrincess
Scratcher
1000+ posts

T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0

OrangeKitty30 wrote:

Starstriker3000 wrote:

OrangeKitty30 wrote:

RedGuy7 wrote:

OrangeKitty30 wrote:

Username: OrangeKitty30
Scratcher Status: Scratcher
Are you following this thread?: Yes
How active are you (1-10): 7-8
Why should we choose you?: I am skilled in banner making and I am working on my digital art. I can also voice act as young children or women. I am also a good person to come too for reviews and other advice like that. 1=0
accepted but go to 2.0
This is 2.0
No it's not. It says Moving to TIPS 2.0 in the title. 2.0 is here.
o
But all the employees here will be automatically moved to 2.0, I think.
culverkwan
Scratcher
500+ posts

T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0

OurPrincess wrote:

OrangeKitty30 wrote:

Starstriker3000 wrote:

OrangeKitty30 wrote:

RedGuy7 wrote:

OrangeKitty30 wrote:

Username: OrangeKitty30
Scratcher Status: Scratcher
Are you following this thread?: Yes
How active are you (1-10): 7-8
Why should we choose you?: I am skilled in banner making and I am working on my digital art. I can also voice act as young children or women. I am also a good person to come too for reviews and other advice like that. 1=0
accepted but go to 2.0
This is 2.0
No it's not. It says Moving to TIPS 2.0 in the title. 2.0 is here.
o
But all the employees here will be automatically moved to 2.0, I think.
Yes
congyingzhou
Scratcher
1000+ posts

T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0

culverkwan wrote:

~snip~
Don’t pretend to be my ALT!!!
I'm not sure if this is all a sick joke

RedGuy7 wrote:

OrangeKitty30 wrote:

Username: OrangeKitty30
Scratcher Status: Scratcher
Are you following this thread?: Yes
How active are you (1-10): 7-8
Why should we choose you?: I am skilled in banner making and I am working on my digital art. I can also voice act as young children or women. I am also a good person to come too for reviews and other advice like that. 1=0
accepted but go to 2.0
no you can't accept forms
congyingzhou
Scratcher
1000+ posts

T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0

culverkwan wrote:


Someone is spamming!
Oh, no. I know it's you on an alt. You told me about this. This is not funny at all.

Big_Brick_Studios wrote:

LBormi wrote:

culverkwan wrote:

ShutUp_Please wrote:

ShutUp_Please wrote:

-snipping-
I AM SPAMMING UNDER THE ORDER OF THE GREAT CULVERKWAN
I was hired lol
STOP SPAMMING!
Is that Java?
that can’t be on this shop because it is post #8753 in the image, but that’s his next post. I don’t see <insert spammer’s name here>’s post on the thread, culverkuan couldn’t have quoted it, so how does that work?
post deleted by ST probably

ComputerCole wrote:

Username: ComputerCole
Work you want done: Banner
Deadline* (dd/mm/yyyy)/(write ASAP**): ASAP
Description: Make it say “The Creative Shop” and make it artsy background.
Project link (if needed): Not needed
Are your profile comments on or are you following this thread (you have to until you fill in the survey): Profile Comments open, I'm not following the discussion.
Link to profile: You can just click my username but here: https://scratch.mit.edu/users/ComputerCole/
Have you read the Terms of Service?: Yes
not qualified
congyingzhou
Scratcher
1000+ posts

T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0

BUMPING STUFF
Click/tap the text to activate the link.
Key:
Red = mandatory to view and respond
Blue = optional
Orange = mandatory to view
The key changes when the list changes.
If you responded, you do not need to respond again.
Fun Vote
Support TIPS by giving an Internet. You are not forced.
The T.I.P.S. Wiki Page
Unofficial Vote
Official Vote
Huge Change (MUST READ!!!!)

I will stop posting the UOC. Orders will go to TIPS 2.0
  • Discussion Forums
  • » Requests
  • » T.I.P.S. (Team Intelligent Projects Shop) ~since 2018~ [NOW HIRING] We offer everything! ⚡️⚡️ ✅✅ Moved to TIPS 2.0 [RSS Feed]

Powered by DjangoBB