Skip to content

Completely merge process(Function/RK4/RK42)Range into processRange after the branch fix/Function#29

Open
Cmd-GZ wants to merge 4 commits into
catabriga:masterfrom
Cmd-GZ:optimize/Function
Open

Completely merge process(Function/RK4/RK42)Range into processRange after the branch fix/Function#29
Cmd-GZ wants to merge 4 commits into
catabriga:masterfrom
Cmd-GZ:optimize/Function

Conversation

@Cmd-GZ

@Cmd-GZ Cmd-GZ commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

It's clearly that process(Function/RK4/RK42)Range is unnecessary after abstract them as processRange.

So I make peocessRange be a public method and remove process(Function/RK4/RK42)Range. And modify the caller (GameData.jar, ComputerPlayer.java)'s code for the change.

I don't know if you could accept large-scale changes. So I split them into 3 PRs. Here is the second one.

Cmd-GZ added 4 commits July 4, 2026 07:01
Integrate many repeative codes and nested codes
…eft corner in y' mode

In y' mode, if you send a function that is undefined, such as `log(x)`, `sqrt(x)`, `ln(x)`, at the starting point, instead of exploding at the starting point, the bullet will explode on the top-left corner.
I have no idea that what stuff exactly causes it, but it's suprise that I fixed it when I try reorganising the `Function.java` unconsciously.
Just like I said, the code in `src/Graphwar/Function.java` is organized to make it more readable, which fixes the bug somehow.
…ter the branch `fix/Function`

It's clearly that process(Function/RK4/RK42)Range is unnecessary after abstract them as processRange.
So I make peocessRange be a public method and remove process(Function/RK4/RK42)Range. And modify the caller (GameData.jar, ComputerPlayer.java)'s code for the change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant