The Student Room Group

gcse ocr computer science programming HELP PLS

my teachers are really **** and i need to complete the programming project
i need help on how to programme the game?
is there anyone else doing this course?
if anyone has guidance for any of these game tasks-

https://www.ocr.org.uk/Images/503195-programming-project-tasks-june-2019-and-june-2020.pdf

id really really appreciate it

Scroll to see replies

Original post by thismoonchild
my teachers are really **** and i need to complete the programming project
i need help on how to programme the game?
is there anyone else doing this course?
if anyone has guidance for any of these game tasks-

https://www.ocr.org.uk/Images/503195-programming-project-tasks-june-2019-and-june-2020.pdf

id really really appreciate it


Doing the same course, already did the project.
1. While you need to get a project done, don't forget it isn't being marked or counting to your final grade.
2. While it does specify that it needs to be a game, it doesn't need to have any GUI.

I have two questions:
1. Which one are you doing?
2. What language are you coding in?
Yes, i am aware of that, thanks.
im coding using C# in Visual Basic
i actually don't know which game to do as i've only got the login page done, do you know which one would be easiest/quickest??
thanks so much
Original post by MikeOnABike
Doing the same course, already did the project.
1. While you need to get a project done, don't forget it isn't being marked or counting to your final grade.
2. While it does specify that it needs to be a game, it doesn't need to have any GUI.

I have two questions:
1. Which one are you doing?
2. What language are you coding in?
Original post by thismoonchild
Yes, i am aware of that, thanks.
im coding using C# in Visual Basic
i actually don't know which game to do as i've only got the login page done, do you know which one would be easiest/quickest??
thanks so much


We did things as a class and while I didn't necessarily agree with them, they chose Project 2 (the dice game) because they thought it was easiest.
I did mine in Python so I don't know how much help I can provide
ahh i see. our class is a bit of a mess tbh the only thing we have in common is C# and using VB but other than that we are doing everything individually.
yeah i thought i should probably do the dice game
that's alright, thanks a lot tho
Original post by MikeOnABike
We did things as a class and while I didn't necessarily agree with them, they chose Project 2 (the dice game) because they thought it was easiest.
I did mine in Python so I don't know how much help I can provide
Original post by thismoonchild
ahh i see. our class is a bit of a mess tbh the only thing we have in common is C# and using VB but other than that we are doing everything individually.
yeah i thought i should probably do the dice game
that's alright, thanks a lot tho

Ok, best of luck, while we were united in our projects, they ranged from the words command prompt games which missed several points to a game which essentially made it the Dice Game: Wii edition, with all the right music. Best of luck. :-)
haha yeah sounds about right, even those doing the same game in my class too lmao
thank you~ good luck for all your exams :smile:
Original post by MikeOnABike
Ok, best of luck, while we were united in our projects, they ranged from the words command prompt games which missed several points to a game which essentially made it the Dice Game: Wii edition, with all the right music. Best of luck. :-)
Reply 7
Original post by thismoonchild
Yes, i am aware of that, thanks.
im coding using C# in Visual Basic
i actually don't know which game to do as i've only got the login page done, do you know which one would be easiest/quickest??
thanks so much


i am an a level student and we are coding in c# visual basics, if you need any help with code feel free to private message me!
Original post by thismoonchild
ahh i see. our class is a bit of a mess tbh the only thing we have in common is C# and using VB but other than that we are doing everything individually.
yeah i thought i should probably do the dice game
that's alright, thanks a lot tho


If you need information and guidance on the basics of C# then then try Microsoft's C# courses - you can enrol onto this for free to get all the videos and learning material (no need to pay for the certificate): https://www.edx.org/course/introduction-to-c-sharp-3

Also, I would really strongly recommend spending 15-20 minutes following this tutorial about the debugger, which is the most useful tool you'll ever learn as a programmer:
https://docs.microsoft.com/en-gb/visualstudio/debugger/debugging-absolute-beginners?view=vs-2017

The Debugger is a way of controlling your program line-by-line while it's running so that you can see exactly what it's doing and what all your variables actually contain - it's very helpful for understanding what your code does, checking your assumptions to find mistakes, and getting to the root cause of problems whenever the program isn't working the way you expected. If you're new to programming in general, then it should save you a lot of time and frustration when things don't work.

More debugger info here too: https://docs.microsoft.com/en-gb/visualstudio/get-started/csharp/tutorial-debugger?view=vs-2017
(edited 5 years ago)
thank you so much, i will :smile:
Original post by Chez 01
i am an a level student and we are coding in c# visual basics, if you need any help with code feel free to private message me!
AH these links are very helpful , i didnt know they existed
yeah we were studying about debuggers at some point but not for our project
thanks very muchh
Original post by winterscoming
If you need information and guidance on the basics of C# then then try Microsoft's C# courses - you can enrol onto this for free to get all the videos and learning material (no need to pay for the certificate): https://www.edx.org/course/introduction-to-c-sharp-3

Also, I would really strongly recommend spending 15-20 minutes following this tutorial about the debugger, which is the most useful tool you'll ever learn as a programmer:
https://docs.microsoft.com/en-gb/visualstudio/debugger/debugging-absolute-beginners?view=vs-2017

The Debugger is a way of controlling your program line-by-line while it's running so that you can see exactly what it's doing and what all your variables actually contain - it's very helpful for understanding what your code does, checking your assumptions to find mistakes, and getting to the root cause of problems whenever the program isn't working the way you expected. If you're new to programming in general, then it should save you a lot of time and frustration when things don't work.

More debugger info here too: https://docs.microsoft.com/en-gb/visualstudio/get-started/csharp/tutorial-debugger?view=vs-2017
Reply 11
Original post by Chez 01
i am an a level student and we are coding in c# visual basics, if you need any help with code feel free to private message me!

Yea im doing the dice game in C# and i have no clue what to do
Original post by Mykaled
Yea im doing the dice game in C# and i have no clue what to do

Firstly, every big, complicated, difficult problem you'll ever find in programming is something which you can break down into smaller, simpler, easier problems to be solved individually, so the most important thing is to learn how to solve problems with divide-and-conquer.

Start out by with a bit of planning and analysis to understand the problem and look at ways that you can break it down into something smaller and simpler to begin with. Don't start out by aiming to build a complicated program which does everything. The way to start is always to get a really easy program working which only solves a small part of the problem and don't fall into the trap of trying to write loads of code at once, then getting lost in the complexity.

If you take the view of 'what's the simplest thing I can possibly do to make something work?' then you can start ignoring loads of the rules and worry about those later.

For example, what if you start with a program which just has one dice and one round? All of a sudden that's pretty straightforward, and you can start trying to frame the problem in terms that make sense in C# - for example, variables, integers, lists, strings, boolean logic, if/else, for, while, read/write, etc.

Before writing any code at all, make sure you can describe it step-by-step on paper. Try to approach each problem that you're trying to solve by thinking about what the user would input, and what they'd expect to see on the screen. e.g. "when the user types {input}, what are the steps to produce {output}?"

Once you start breaking the problem down you should end up with some nice simple Google'able problems e.g.

How to print to the screen in C#

How to read input from the user in C#

How to simulate a dice roll in C# (You will probably want to look at 'Random' - https://stackoverflow.com/questions/2706500/how-do-i-generate-a-random-int-number

How to compare numbers in C#

How to repeat some instructions in C#


Remember as well that if you can write C# code to do something once, then modifying that program to repeat those same instructions multiple times is a matter of using repetition - e.g. for, foreach, while.

Try to break the problem down into lots of small, separate programs and solve those on their own without trying to overload the same big program with lots of small sub-problems which are separate to each other and can all be split out.

For example, you're being asked to solve problems related to reading and writing files in C# - You should first spend a bit of time thinking about what you actually want to store in your files (a .CSV file might be a good simple solution) then you could write a couple of completely separate programs which just do the CSV file stuff on its own, then bring that into your program later. -- e.g. Read a CSV file into a list. Write a list into a CSV file.
-- it's a really good idea to read/write entire file contents at once then just work with lists in your code; don't fall into the trap of trying to read/write individual lines of a file.
-- Make sure you also think carefully about the data you want to store - you can create a 'class' in C# which you can use to split up each of the different items of data in your files (e.g. each time you find a line/row in your file, then you would use the "new" keyword in C# to read that line/row into a class instance).




There's already some links earlier in this thread to some C# resources; but Google and StackOverflow are your best chance at finding examples and explanations of the C# syntax. Make sure you do learn how to use the Visual Studio debugger because that'll be really useful and important if you find that the code isn't doing what you expect. - https://docs.microsoft.com/en-gb/visualstudio/debugger/debugging-absolute-beginners?view=vs-2017
(edited 4 years ago)
Reply 13
anyone know how to start the dice game?
Original post by tam:))
anyone know how to start the dice game?

See the reply directly above your post, and replace "C#" with whatever language you're using
I'm starting my control assessment this month and we to are doing a dice game. I believe you did it in python, so can may I ask if i could have your code. Please and thank you
Original post by 15Frostie
I'm starting my control assessment this month and we to are doing a dice game. I believe you did it in python, so can may I ask if i could have your code. Please and thank you

If you just take someone else's solution then you'll never improve your own problem solving skills. When you reach the final exam there's going to be a programming paper where you'll need to know how to solve problems in exactly the same way; so doing this project by trying it for yourself and working through each of the tasks that you're set will prepare you for that because it's all just the same thing. Learning to think computationally and using programming concepts to solve problems for this assessment uses the exact same skills that you'll need for writing pseudocode in the exam.

Other than that, for an idea of where to start, see the other reply I sent above and replace 'C# with 'Python' (it's the same in any language). You can use Google and StackOverflow to get examples using Python syntax. Once you've started and tried a few of the tasks for yourself you'll probably realise that it's not as hard as it first looks because it's just one big problem that you can split up into lots of smaller ones.
Original post by winterscoming
If you just take someone else's solution then you'll never improve your own problem solving skills. When you reach the final exam there's going to be a programming paper where you'll need to know how to solve problems in exactly the same way; so doing this project by trying it for yourself and working through each of the tasks that you're set will prepare you for that because it's all just the same thing. Learning to think computationally and using programming concepts to solve problems for this assessment uses the exact same skills that you'll need for writing pseudocode in the exam.

Other than that, for an idea of where to start, see the other reply I sent above and replace 'C# with 'Python' (it's the same in any language). You can use Google and StackOverflow to get examples using Python syntax. Once you've started and tried a few of the tasks for yourself you'll probably realise that it's not as hard as it first looks because it's just one big problem that you can split up into lots of smaller ones.

Thank you for your response. Greatly appreciated. The thing is i haven't learned anything since we've started python because are teacher is rubbish, and I've been looking for help online for so long. I really only have a month or two before we even finish the python stuff. Are there any websites you could recommend? where they explain codes and step by step instructions.
Thanks again.
Original post by 15Frostie
Thank you for your response. Greatly appreciated. The thing is i haven't learned anything since we've started python because are teacher is rubbish, and I've been looking for help online for so long. I really only have a month or two before we even finish the python stuff. Are there any websites you could recommend? where they explain codes and step by step instructions.
Thanks again.


I'm sorry to hear that the teacher isn't very good. You can definitely learn a lot in a couple of months by yourself if you work at it though.

First thing to do is make sure you're comfortable with the basics of Python - there's some really good interactive lessons here just for the basic syntax, structure and 'grammar' of Python: https://www.codecademy.com/courses/learn-python It also explains a lot of the jargon and helps with learning to notice and fix common mistakes
(you can do all the interactive lessons without needing to pay for 'Pro' -- it will keep showing messages to try to get you to pay, but you can ignore those, you don't need the quizzes and other stuff really)

Some decent Python videos here: https://www.youtube.com/playlist?list=PL3072C720775B213E

This is also good for explaining programming concepts using Python: https://student.craigndave.org/videos/2-2-programming-techniques

A more in-depth Python course made by University of Michigan - the lecturer is really good at explaining the concepts in the video lessons and walking through code samples - https://www.py4e.com/ (Everything up to Lesson 10 is useful, all the code in the videos is explained in the written notes on each lesson as well).

Useful PDF for finding and fixing Python errors: https://pythonforbiologists.com/29-common-beginner-errors-on-one-page/

A good example of using Python with CSV files here: https://courses.cs.washington.edu/courses/cse140/13wi/csv-parsing.html

This e-book is pretty good at explaining all the main features of Python too: http://greenteapress.com/wp/think-python-2e/

In case you're using 'IDLE' to write code (IDLE isn't very good really..), try using PyCharm instead (Community edition is free); it's got a lot more modern features and assistance to help you write code such as autocomplete, mouseover help, error highlighting, and a much better debugger: https://www.jetbrains.com/help/pycharm/quick-start-guide.html

If you haven't used or heard of a debugger before, then this will help you a lot when you're writing code; it lets you pause the program as it's running to see what's actually happening, and will let you see how it works by stepping through line-by-line so that you can see the flow, and mouseover your variables to see what they contain at that point in time, etc. This is really worth 10-15 minutes of your time to get used to setting Breakpoints (red dots) and running the debugger, since it could save you many hours of trying to see how/why your code isn't working the way you expect: https://www.jetbrains.com/help/pycharm/debugging-your-first-python-application.html

Also, Python (or any other language) is just a tool so in terms of knowing what to do and how to solve the problem, you still need to be able to think algorithmically and decompose problems into smaller steps -- in many ways that's the "hard part" about programming because it's all about learning new ways of thinking. Have a look at some of these, the methods of solving problems he explains is useful here and really important for the exam: https://student.craigndave.org/videos/2-1-algorithm
(edited 4 years ago)
Reply 19
Original post by winterscoming
Firstly, every big, complicated, difficult problem you'll ever find in programming is something which you can break down into smaller, simpler, easier problems to be solved individually, so the most important thing is to learn how to solve problems with divide-and-conquer.

Start out by with a bit of planning and analysis to understand the problem and look at ways that you can break it down into something smaller and simpler to begin with. Don't start out by aiming to build a complicated program which does everything. The way to start is always to get a really easy program working which only solves a small part of the problem and don't fall into the trap of trying to write loads of code at once, then getting lost in the complexity.

If you take the view of 'what's the simplest thing I can possibly do to make something work?' then you can start ignoring loads of the rules and worry about those later.

For example, what if you start with a program which just has one dice and one round? All of a sudden that's pretty straightforward, and you can start trying to frame the problem in terms that make sense in C# - for example, variables, integers, lists, strings, boolean logic, if/else, for, while, read/write, etc.

Before writing any code at all, make sure you can describe it step-by-step on paper. Try to approach each problem that you're trying to solve by thinking about what the user would input, and what they'd expect to see on the screen. e.g. "when the user types {input}, what are the steps to produce {output}?"

Once you start breaking the problem down you should end up with some nice simple Google'able problems e.g.

How to print to the screen in C#

How to read input from the user in C#

How to simulate a dice roll in C# (You will probably want to look at 'Random' - https://stackoverflow.com/questions/2706500/how-do-i-generate-a-random-int-number

How to compare numbers in C#

How to repeat some instructions in C#


Remember as well that if you can write C# code to do something once, then modifying that program to repeat those same instructions multiple times is a matter of using repetition - e.g. for, foreach, while.

Try to break the problem down into lots of small, separate programs and solve those on their own without trying to overload the same big program with lots of small sub-problems which are separate to each other and can all be split out.

For example, you're being asked to solve problems related to reading and writing files in C# - You should first spend a bit of time thinking about what you actually want to store in your files (a .CSV file might be a good simple solution) then you could write a couple of completely separate programs which just do the CSV file stuff on its own, then bring that into your program later. -- e.g. Read a CSV file into a list. Write a list into a CSV file.
-- it's a really good idea to read/write entire file contents at once then just work with lists in your code; don't fall into the trap of trying to read/write individual lines of a file.
-- Make sure you also think carefully about the data you want to store - you can create a 'class' in C# which you can use to split up each of the different items of data in your files (e.g. each time you find a line/row in your file, then you would use the "new" keyword in C# to read that line/row into a class instance).




There's already some links earlier in this thread to some C# resources; but Google and StackOverflow are your best chance at finding examples and explanations of the C# syntax. Make sure you do learn how to use the Visual Studio debugger because that'll be really useful and important if you find that the code isn't doing what you expect. - https://docs.microsoft.com/en-gb/visualstudio/debugger/debugging-absolute-beginners?view=vs-2017


Thank you so much

Quick Reply

Latest

Trending

Trending