AS AQA Computer Science 2016 Revision Help Watch

User1452521
Badges: 2
Rep:
?
#41
Report 3 years ago
#41
(Original post by mahmzo)
yeah, if you miss you lose a certain amount, and for each ship hit I did it in a dictionary e.g {"A":6} so if A is hit it gives 6 points etc. Or you can randomise it.

Do you know of anything else that people have not done yet?
The multiplayer component, but wouldn't that be a bit too much for the exam time, bc you'd need separate arrays etc. or are you saying to just switch between each player after each turn?
0
reply
OllieGidman
Badges: 1
Rep:
?
#42
Report 3 years ago
#42
(Original post by KnightCode)
Is this for the new spec from 2015+
or the old spec.
I'm taking the old spec comp1, comp2, comp3 this year.
So if anyone else is also doing old spec, we can revise together and exchange notes xD
I'm doing old spec comp 3 and done the coursework this year, did 1 and 2 last year


Posted from TSR Mobile
0
reply
mahmzo
Badges: 15
Rep:
?
#43
Report 3 years ago
#43
(Original post by brodingoson)
The multiplayer component, but wouldn't that be a bit too much for the exam time, bc you'd need separate arrays etc. or are you saying to just switch between each player after each turn?
I mean it is actually pretty simple, people keep saying you need to create 2 different boards. No there is no need.

If they ask for a simple multiplayer you can do the following , ill write a little algorithm :P

Create a new menu option.
Copy and paste PlayGame (Rename it to MultiplayerGame)
create a new array at the top, that has 2 default names or ask user for their name via input and add it into the array (perhaps make one similar to ships so you can have a score as well EG [["PlayerOne",0]])

Now the only hard bit is using the % operator to alternate between the players. You can set a number = 2 then % with 2. check I the remainder is = 0 then itll be player 1 turn else if the remainder = 1 itll be player 2 turn.

Then you need to pass this array to the getplayerchoice. pass it through the getrowcolumn. then before asking for input print (player[0]) enter your choice.

That's pretty much it. It sounds complex but it is much easier

I really want an A badly haha good luck to all taking the exam. We have like 2 weeks left right?
0
reply
User1452521
Badges: 2
Rep:
?
#44
Report 3 years ago
#44
(Original post by mahmzo)
I mean it is actually pretty simple, people keep saying you need to create 2 different boards. No there is no need.

If they ask for a simple multiplayer you can do the following , ill write a little algorithm :P

Create a new menu option.
Copy and paste PlayGame (Rename it to MultiplayerGame)
create a new array at the top, that has 2 default names or ask user for their name via input and add it into the array (perhaps make one similar to ships so you can have a score as well EG [["PlayerOne",0]])

Now the only hard bit is using the % operator to alternate between the players. You can set a number = 2 then % with 2. check I the remainder is = 0 then itll be player 1 turn else if the remainder = 1 itll be player 2 turn.

Then you need to pass this array to the getplayerchoice. pass it through the getrowcolumn. then before asking for input print (player[0]) enter your choice.

That's pretty much it. It sounds complex but it is much easier

I really want an A badly haha good luck to all taking the exam. We have like 2 weeks left right?
It does seem complex haha, I'll have a go at it thanks tho!

And yeah 2 weeks, if my coding doesnt go well, im aiming for 100% in the theory exam
Good luck!
0
reply
GarlicBread01
Badges: 10
Rep:
?
#45
Report 3 years ago
#45
If you guys are making a whatsapp GC for computer science add me too
0
reply
mahmzo
Badges: 15
Rep:
?
#46
Report 3 years ago
#46
(Original post by GarlicBread01)
If you guys are making a whatsapp GC for computer science add me too
No one has joined yet, if you want PM Me your No
0
reply
DibbyDabby
Badges: 10
Rep:
?
#47
Report Thread starter 3 years ago
#47
Does anyone know any good websites for practising coding. I am doing python
0
reply
OllieGidman
Badges: 1
Rep:
?
#48
Report 3 years ago
#48
(Original post by DibbyDabby)
Does anyone know any good websites for practising coding. I am doing python
Code academy if you want to learn more, if not think of a project and just do it, feel free to PM me if you need help, I have just done my coursework in Python


Posted from TSR Mobile
0
reply
User1452521
Badges: 2
Rep:
?
#49
Report 3 years ago
#49
(Original post by DibbyDabby)
Does anyone know any good websites for practising coding. I am doing python
Are you doing the new spec of computer science?

And what i do, basically think of simple program you could make, could be anything, try and get the background code to work and then add little touches to it, but try do it without help, that's how i got better
But probably should focus on the skeleton code if i was you
0
reply
Mastermaxtoppen
Badges: 3
Rep:
?
#50
Report 3 years ago
#50
Anyone doing java here?
0
reply
User1452521
Badges: 2
Rep:
?
#51
Report 3 years ago
#51
Does anyone know where i can get past papers for computing before 2013 because they only have 2013 to 2015 on the AQA website
0
reply
OllieGidman
Badges: 1
Rep:
?
#52
Report 3 years ago
#52
(Original post by brodingoson)
Does anyone know where i can get past papers for computing before 2013 because they only have 2013 to 2015 on the AQA website
Is this for the old spec?


Posted from TSR Mobile
0
reply
User1452521
Badges: 2
Rep:
?
#53
Report 3 years ago
#53
(Original post by OllieGidman)
Is this for the old spec?


Posted from TSR Mobile
Yeah but I'm doing the new spec. I just want as many questions to do as possible haha
0
reply
OllieGidman
Badges: 1
Rep:
?
#54
Report 3 years ago
#54
(Original post by brodingoson)
Yeah but I'm doing the new spec. I just want as many questions to do as possible haha
Okay, what units are you looking for because I might have some?


Posted from TSR Mobile
0
reply
User1452521
Badges: 2
Rep:
?
#55
Report 3 years ago
#55
(Original post by OllieGidman)
Okay, what units are you looking for because I might have some?


Posted from TSR Mobile
Units 2 & 3, but if have any unit 1's i could check them out
0
reply
OllieGidman
Badges: 1
Rep:
?
#56
Report 3 years ago
#56
(Original post by brodingoson)
Units 2 & 3, but if have any unit 1's i could check them out
PM me your email and I will see if I can find some and send them to you


Posted from TSR Mobile
0
reply
abc_123_
Badges: 16
Rep:
?
#57
Report 3 years ago
#57
It's about GCSE Computer Science rather than AS but could anyone tell me about Lists & Arrays and Parameters please I'm really confused? Xxx
And good luck for AS Computer Scienece exam xx
0
reply
OllieGidman
Badges: 1
Rep:
?
#58
Report 3 years ago
#58
(Original post by abc_123_)
It's about GCSE Computer Science rather than AS but could anyone tell me about Lists & Arrays and Parameters please I'm really confused? Xxx
And good luck for AS Computer Scienece exam xx
What exactly would you like to know about them?
0
reply
abc_123_
Badges: 16
Rep:
?
#59
Report 3 years ago
#59
(Original post by OllieGidman)
What exactly would you like to know about them?
The difference between lists and arrays and why they help writing code easier
Also what do parameters do and why they make programs easier? Xx
Sorry I don't understand the revision guide xxx
0
reply
mahmzo
Badges: 15
Rep:
?
#60
Report 3 years ago
#60
(Original post by abc_123_)
It's about GCSE Computer Science rather than AS but could anyone tell me about Lists & Arrays and Parameters please I'm really confused? Xxx
And good luck for AS Computer Science exam xx
Ok a List is an Array, it is a very fundamental data structure lol. You can declare one using (in Python) square brackets ([ ])
What we have there is an empty list, you can do ALOT using lists, they are a very strong for programmers because they are muteable (changeable).

Parameters are used in functions (def etc etc), the parameters can be used to do alot of things such as move data from one function to other (very bad explanation). It can stop the use of global variables which are not good to have when coding.

EG
def main():
a = 5
example(a) # here the function example is taking one parameter (a)
1
reply
X

Quick Reply

Attached files
Write a reply...
Reply
new posts
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

University open days

  • Bournemouth University
    Clearing Open Day Undergraduate
    Wed, 31 Jul '19
  • Staffordshire University
    Postgraduate open event - Stoke-on-Trent campus Postgraduate
    Wed, 7 Aug '19
  • University of Derby
    Foundation Open Event Further education
    Wed, 7 Aug '19

Are you tempted to change your firm university choice now or on A-level results day?

Yes, I'll try and go to a uni higher up the league tables (132)
18.78%
Yes, there is a uni that I prefer and I'll fit in better (70)
9.96%
No I am happy with my course choice (401)
57.04%
I'm using Clearing when I have my exam results (100)
14.22%

Watched Threads

View All